You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
144 lines
2.1 KiB
Plaintext
144 lines
2.1 KiB
Plaintext
9 years ago
|
###############
|
||
|
# General
|
||
|
###############
|
||
9 years ago
|
log_path = /dev/stderr
|
||
9 years ago
|
protocols = imap lmtp sieve
|
||
|
postmaster_address = %{env:POSTMASTER_ADDRESS}
|
||
|
hostname = %{env:MAIL_HOSTNAME}
|
||
9 years ago
|
mail_plugins = $mail_plugins quota
|
||
9 years ago
|
|
||
9 years ago
|
service dict {
|
||
|
unix_listener dict {
|
||
|
group = mail
|
||
|
mode = 0660
|
||
|
}
|
||
|
}
|
||
|
|
||
9 years ago
|
###############
|
||
|
# Mailboxes
|
||
|
###############
|
||
|
first_valid_gid = 8
|
||
|
first_valid_uid = 8
|
||
9 years ago
|
mail_location = maildir:/mail/%u
|
||
|
mail_home = /mail/%u
|
||
9 years ago
|
mail_uid = mail
|
||
|
mail_gid = mail
|
||
|
mail_privileged_group = mail
|
||
|
mail_access_groups = mail
|
||
|
|
||
9 years ago
|
namespace inbox {
|
||
|
inbox = yes
|
||
|
mailbox Trash {
|
||
|
auto = subscribe
|
||
|
special_use = \Trash
|
||
|
}
|
||
|
mailbox Drafts {
|
||
|
auto = subscribe
|
||
|
special_use = \Drafts
|
||
|
}
|
||
|
mailbox Sent {
|
||
|
auto = subscribe
|
||
|
special_use = \Sent
|
||
|
}
|
||
|
mailbox Junk {
|
||
|
auto = subscribe
|
||
|
special_use = \Junk
|
||
|
}
|
||
|
}
|
||
|
|
||
9 years ago
|
###############
|
||
|
# TLS
|
||
|
###############
|
||
|
ssl = yes
|
||
9 years ago
|
ssl_cert = </certs/cert.pem
|
||
|
ssl_key = </certs/key.pem
|
||
9 years ago
|
|
||
|
###############
|
||
|
# Authentication
|
||
|
###############
|
||
9 years ago
|
auth_mechanisms = plain login
|
||
9 years ago
|
|
||
|
passdb {
|
||
|
driver = sql
|
||
|
args = /etc/dovecot/dovecot-sql.conf.ext
|
||
|
}
|
||
|
|
||
|
userdb {
|
||
|
driver = sql
|
||
|
args = /etc/dovecot/dovecot-sql.conf.ext
|
||
|
}
|
||
|
|
||
|
service auth {
|
||
|
user = dovecot
|
||
|
unix_listener auth-userdb {
|
||
|
}
|
||
9 years ago
|
|
||
|
inet_listener {
|
||
|
port = 2102
|
||
9 years ago
|
}
|
||
|
}
|
||
|
|
||
|
service auth-worker {
|
||
|
unix_listener auth-worker {
|
||
|
user = mail
|
||
|
group = $default_internal_user
|
||
|
mode = 0660
|
||
|
}
|
||
|
user = mail
|
||
|
}
|
||
|
|
||
|
###############
|
||
|
# IMAP
|
||
|
###############
|
||
|
|
||
|
protocol imap {
|
||
9 years ago
|
mail_plugins = $mail_plugins imap_quota
|
||
9 years ago
|
}
|
||
|
|
||
|
service imap-login {
|
||
|
inet_listener imap {
|
||
|
port = 143
|
||
|
}
|
||
|
inet_listener imaps {
|
||
|
port = 993
|
||
|
}
|
||
|
}
|
||
|
|
||
|
###############
|
||
|
# Delivery
|
||
|
###############
|
||
|
|
||
|
protocol lmtp {
|
||
9 years ago
|
mail_plugins = $mail_plugins sieve
|
||
9 years ago
|
recipient_delimiter = +
|
||
|
}
|
||
|
|
||
|
service lmtp {
|
||
9 years ago
|
inet_listener lmtp {
|
||
|
port = 2525
|
||
9 years ago
|
}
|
||
|
}
|
||
|
|
||
9 years ago
|
plugin {
|
||
|
quota = maildir:User quota
|
||
|
}
|
||
|
|
||
9 years ago
|
|
||
|
###############
|
||
|
# Filtering
|
||
|
###############
|
||
|
|
||
|
service managesieve-login {
|
||
|
inet_listener sieve {
|
||
|
port = 4190
|
||
|
}
|
||
|
}
|
||
|
|
||
|
plugin {
|
||
|
sieve = ~/.sieve
|
||
|
sieve_dir = ~/sieve
|
||
9 years ago
|
sieve_before = /var/lib/dovecot/before.sieve
|
||
|
sieve_default = /var/lib/dovecot/default.sieve
|
||
|
sieve_after = /var/lib/dovecot/after.sieve
|
||
9 years ago
|
}
|