Mercurial > shinyoukai > mailserver
diff dovecot/dovecot.conf @ 0:e3de72cc63b9
I have no interest in an ordinary menu
| author | Shin'ya Minazuki <shinyoukai@laidback.moe> |
|---|---|
| date | Mon, 10 Nov 2025 21:14:26 +0900 |
| parents | |
| children | 007252fb6449 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dovecot/dovecot.conf Mon Nov 10 21:14:26 2025 +0900 @@ -0,0 +1,110 @@ +## Dovecot configuration file + +listen = *, :: + +mail_plugin_dir = /usr/lib/dovecot +base_dir = /var/run/dovecot +instance_name = dovecot + +protocols = imap lmtp pop3 + +# TLS stuff +ssl = yes +ssl_cert = </etc/letsencrypt/live/example.net/fullchain.pem +ssl_key = </etc/letsencrypt/live/example.net/privkey.pem + +# Authentication +auth_mechanisms = plain login +auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ +auth_username_format = %n +disable_plaintext_auth = no + +# Valid users +first_valid_uid = 143 +last_valid_uid = 1003 +first_valid_gid = 6 +last_valid_gid = 1008 + +lda_mailbox_autocreate = yes +imap_capability = +SPECIAL-USE + +# Hostname +hostname = example.net + +# PostgreSQL UserDB +#userdb { +# driver = sql +# args = /etc/dovecot/pgsql.conf +#} + +#passdb { +# driver = sql +# args = /etc/dovecot/pgsql.conf +#} + +protocol lmtp { + mail_plugins = $mail_plugins sieve +} + +service auth { + unix_listener auth-userdb { + mode = 0660 + user = dovecot + group = mail + } +} + +passdb { + driver = pam +} + +userdb { + driver = passwd +} + +service lmtp { + unix_listener lmtp { + mode = 0660 + user = dovecot + group = mail + } +} + + +# Mailbox +mail_location = maildir:~/Maildir +mailbox_list_index = yes +mail_uid = dovecot +mail_gid = dovecot + +namespace inbox { + type = private + inbox = yes + mailbox Archive { + special_use = \Archive + auto = create + } + mailbox Drafts { + special_use = \Drafts + auto = create + } + mailbox Sent { + special_use = \Sent + auto = create + } + mailbox Junk { + special_use = \Junk + auto = create + autoexpunge = 30d + } + mailbox Trash { + special_use = \Trash + auto = create + autoexpunge = 7d + } +} + +plugin { + sieve = yes + sieve_after = /etc/dovecot/sieve +}
