From 838ced2b6b1b322b000cfaef8ec23654424ad9a4 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 23 Mar 2025 12:20:24 +0000 Subject: dovecot switch to track only one config file --- etc/dovecot/dovecot.conf | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 etc/dovecot/dovecot.conf (limited to 'etc/dovecot/dovecot.conf') diff --git a/etc/dovecot/dovecot.conf b/etc/dovecot/dovecot.conf new file mode 100644 index 00000000..e7d11a07 --- /dev/null +++ b/etc/dovecot/dovecot.conf @@ -0,0 +1,48 @@ +# Edited from `doveconf -nP`, see https://doc.dovecot.org/2.3/configuration_manual/quick_configuration/#split-configuration-files +mail_location = maildir:~/Mail:INBOX=~/Mail/Inbox:LAYOUT=fs +namespace inbox { + inbox = yes + location = + mailbox Archive { + auto = subscribe + special_use = \Archive + } + mailbox Drafts { + auto = subscribe + special_use = \Drafts + } + mailbox Junk { + auto = subscribe + special_use = \Junk + } + mailbox Sent { + auto = subscribe + special_use = \Sent + } + mailbox Trash { + auto = subscribe + # https://doc.dovecot.org/configuration_manual/namespace/#core_setting-namespace/mailbox/autoexpunge + # https://github.com/LukeSmithxyz/emailwiz/blob/558c4de108a472eca70abca20888de2981ff17ca/emailwiz.sh#L259 + # https://doc.dovecot.org/settings/types/#time + autoexpunge = 30 days + special_use = \Trash + } + prefix = +} +passdb { + driver = pam +} +service auth { + unix_listener /var/spool/postfix/private/auth { + group = postfix + mode = 0666 + user = postfix + } +} +ssl = required +ssl_cert =