diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-03-23 12:20:24 +0000 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-03-23 12:20:24 +0000 |
commit | 838ced2b6b1b322b000cfaef8ec23654424ad9a4 (patch) | |
tree | 36b8169190b57ee3ac27e61c3c3afe3dd58cd60b /etc/dovecot/dovecot.conf | |
parent | 9714e15c3c39ed175df7bfd9b58c386d134e6e3a (diff) |
dovecot switch to track only one config file
Diffstat (limited to 'etc/dovecot/dovecot.conf')
-rw-r--r-- | etc/dovecot/dovecot.conf | 48 |
1 files changed, 48 insertions, 0 deletions
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 = </etc/postfix/flylightning.pem +ssl_dh = </etc/dovecot/dh.pem +ssl_key = </etc/postfix/flylightning.key +userdb { + driver = passwd +} |