From 062ef20d05e08d7ad767fe7e3ea40f656a94663f Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 31 Jan 2023 06:57:35 +0000 Subject: [PATCH] dovecot: auto-create the "Sent" message box --- hosts/by-name/servo/services/postfix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/by-name/servo/services/postfix.nix b/hosts/by-name/servo/services/postfix.nix index 1469f12e6..ecd59d9b9 100644 --- a/hosts/by-name/servo/services/postfix.nix +++ b/hosts/by-name/servo/services/postfix.nix @@ -143,6 +143,11 @@ in # inspired by https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/ services.dovecot2.enable = true; + services.dovecot2.mailboxes = { + # other special-purpose mailboxes: "All" "Archive" "Drafts" "Flagged" "Junk" "Sent" "Trash" + # RFC6154 describes these special mailboxes: https://www.ietf.org/rfc/rfc6154.html + Sent = { specialUse = "Sent"; auto = "create"; }; + }; services.dovecot2.sslServerCert = "/var/lib/acme/imap.uninsane.org/fullchain.pem"; services.dovecot2.sslServerKey = "/var/lib/acme/imap.uninsane.org/key.pem"; services.dovecot2.enablePAM = false;