Mercurial > shinyoukai > mailserver
comparison 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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:e3de72cc63b9 |
|---|---|
| 1 ## Dovecot configuration file | |
| 2 | |
| 3 listen = *, :: | |
| 4 | |
| 5 mail_plugin_dir = /usr/lib/dovecot | |
| 6 base_dir = /var/run/dovecot | |
| 7 instance_name = dovecot | |
| 8 | |
| 9 protocols = imap lmtp pop3 | |
| 10 | |
| 11 # TLS stuff | |
| 12 ssl = yes | |
| 13 ssl_cert = </etc/letsencrypt/live/example.net/fullchain.pem | |
| 14 ssl_key = </etc/letsencrypt/live/example.net/privkey.pem | |
| 15 | |
| 16 # Authentication | |
| 17 auth_mechanisms = plain login | |
| 18 auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@ | |
| 19 auth_username_format = %n | |
| 20 disable_plaintext_auth = no | |
| 21 | |
| 22 # Valid users | |
| 23 first_valid_uid = 143 | |
| 24 last_valid_uid = 1003 | |
| 25 first_valid_gid = 6 | |
| 26 last_valid_gid = 1008 | |
| 27 | |
| 28 lda_mailbox_autocreate = yes | |
| 29 imap_capability = +SPECIAL-USE | |
| 30 | |
| 31 # Hostname | |
| 32 hostname = example.net | |
| 33 | |
| 34 # PostgreSQL UserDB | |
| 35 #userdb { | |
| 36 # driver = sql | |
| 37 # args = /etc/dovecot/pgsql.conf | |
| 38 #} | |
| 39 | |
| 40 #passdb { | |
| 41 # driver = sql | |
| 42 # args = /etc/dovecot/pgsql.conf | |
| 43 #} | |
| 44 | |
| 45 protocol lmtp { | |
| 46 mail_plugins = $mail_plugins sieve | |
| 47 } | |
| 48 | |
| 49 service auth { | |
| 50 unix_listener auth-userdb { | |
| 51 mode = 0660 | |
| 52 user = dovecot | |
| 53 group = mail | |
| 54 } | |
| 55 } | |
| 56 | |
| 57 passdb { | |
| 58 driver = pam | |
| 59 } | |
| 60 | |
| 61 userdb { | |
| 62 driver = passwd | |
| 63 } | |
| 64 | |
| 65 service lmtp { | |
| 66 unix_listener lmtp { | |
| 67 mode = 0660 | |
| 68 user = dovecot | |
| 69 group = mail | |
| 70 } | |
| 71 } | |
| 72 | |
| 73 | |
| 74 # Mailbox | |
| 75 mail_location = maildir:~/Maildir | |
| 76 mailbox_list_index = yes | |
| 77 mail_uid = dovecot | |
| 78 mail_gid = dovecot | |
| 79 | |
| 80 namespace inbox { | |
| 81 type = private | |
| 82 inbox = yes | |
| 83 mailbox Archive { | |
| 84 special_use = \Archive | |
| 85 auto = create | |
| 86 } | |
| 87 mailbox Drafts { | |
| 88 special_use = \Drafts | |
| 89 auto = create | |
| 90 } | |
| 91 mailbox Sent { | |
| 92 special_use = \Sent | |
| 93 auto = create | |
| 94 } | |
| 95 mailbox Junk { | |
| 96 special_use = \Junk | |
| 97 auto = create | |
| 98 autoexpunge = 30d | |
| 99 } | |
| 100 mailbox Trash { | |
| 101 special_use = \Trash | |
| 102 auto = create | |
| 103 autoexpunge = 7d | |
| 104 } | |
| 105 } | |
| 106 | |
| 107 plugin { | |
| 108 sieve = yes | |
| 109 sieve_after = /etc/dovecot/sieve | |
| 110 } |
