From c9892b9e51d037e4688285405da8b8532f374129 Mon Sep 17 00:00:00 2001 From: Luciano Giacchetta Date: Tue, 10 Feb 2026 19:06:41 -0300 Subject: [PATCH] feat: configure standard special-use mailboxes in dovecot Update templates/10-mail.conf.j2 to explicitly define standard mailboxes (Drafts, Junk, Trash, Sent) within the inbox namespace. This change ensures that: - These folders are automatically subscribed (`auto = subscribe`). - They are correctly flagged with `special_use` attributes, improving compatibility with IMAP clients. - "Sent Messages" is also recognized as a Sent folder for broader client support. --- templates/10-mail.conf.j2 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/templates/10-mail.conf.j2 b/templates/10-mail.conf.j2 index 640586a..edddf85 100644 --- a/templates/10-mail.conf.j2 +++ b/templates/10-mail.conf.j2 @@ -4,4 +4,24 @@ mail_location = {{ dovecot_mail_location }} namespace inbox { inbox = yes + + mailbox Drafts { + special_use = \Drafts + auto = subscribe + } + mailbox Junk { + special_use = \Junk + auto = subscribe + } + mailbox Trash { + special_use = \Trash + auto = subscribe + } + mailbox Sent { + special_use = \Sent + auto = subscribe + } + mailbox "Sent Messages" { + special_use = \Sent + } }