From 8cb6a5649b93b6388955e794e80c402460916d7f Mon Sep 17 00:00:00 2001 From: chri2 Date: Tue, 31 Oct 2023 14:07:36 +0100 Subject: [PATCH] let dovecot create folders on first login tells dovecot to create standard folders on first login if they do not exist and which folder names are used for special purposes like archive, spam/junk, sent, etc. --- conf/dovecot/dovecot.conf | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/conf/dovecot/dovecot.conf b/conf/dovecot/dovecot.conf index 4f491d1df..1bd5ad5e3 100644 --- a/conf/dovecot/dovecot.conf +++ b/conf/dovecot/dovecot.conf @@ -65,13 +65,40 @@ protocol imap { mail_plugins = $mail_plugins imap_quota antispam } - protocol lda { auth_socket_path = /var/run/dovecot/auth-master mail_plugins = quota sieve postmaster_address = postmaster@{{ main_domain }} } +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 + } + mailbox "Archive" { + special_use = \Archive + auto = subscribe + } +} + protocol sieve { }