100 lines
2.2 KiB
Plaintext
100 lines
2.2 KiB
Plaintext
# Listen on all IPv4 and IPv6 addresses
|
|
listen = *, ::
|
|
|
|
# Directory in which extensions can be loaded and runtime data saved
|
|
base_dir = /var/run/dovecot
|
|
mail_plugin_dir = /usr/lib/dovecot
|
|
|
|
# Identifier used for the process list and the system logger
|
|
instance_name = dovecot
|
|
|
|
# List of protocols to support
|
|
protocols = imap lmtp pop3
|
|
|
|
# Secure Sockets Layer / Transport Layer Security
|
|
ssl = yes
|
|
ssl_cert = </etc/letsencrypt/live/chaotic.ninja/fullchain.pem
|
|
ssl_key = </etc/letesncrypt/live/chaotic.ninja/privkey.pem
|
|
|
|
# Authentication settings
|
|
auth_mechanisms = plain login
|
|
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
|
|
auth_username_format = %n
|
|
disable_plaintext_auth = no
|
|
|
|
passdb {
|
|
driver = pam
|
|
}
|
|
|
|
userdb {
|
|
driver = passwd
|
|
}
|
|
|
|
# Mailboxes
|
|
mail_location = maildir:~/Maildir
|
|
mailbox_list_index = yes
|
|
mail_uid = dovecot
|
|
mail_gid = mail
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
# Plugins
|
|
plugin {
|
|
sieve = yes
|
|
sieve_after = /etc/dovecot/sieve
|
|
}
|
|
|
|
|
|
# Protocol settings
|
|
protocol lmtp {
|
|
mail_plugins = $mail_plugins sieve
|
|
}
|
|
|
|
# Service settings
|
|
service auth {
|
|
unix_listener auth-userdb {
|
|
mode = 0660
|
|
user = dovecot
|
|
group = mail
|
|
}
|
|
}
|
|
|
|
service lmtp {
|
|
unix_listener lmtp {
|
|
mode = 0660
|
|
user = dovecot
|
|
group = mail
|
|
}
|
|
}
|
|
|
|
# Valid user and group identifiers
|
|
first_valid_uid = 1000
|
|
last_valid_uid = 2000
|
|
first_valid_gid = 12
|
|
last_valid_gid = 984
|