2016-02-17 23:56:40 +02:00
|
|
|
###############
|
|
|
|
# General
|
|
|
|
###############
|
2016-02-24 08:44:49 +02:00
|
|
|
log_path = /dev/stderr
|
2016-02-17 23:56:40 +02:00
|
|
|
protocols = imap lmtp sieve
|
2016-05-29 15:56:18 +02:00
|
|
|
postmaster_address = {{ POSTMASTER }}@{{ DOMAIN }}
|
|
|
|
hostname = {{ HOSTNAME }}
|
2016-02-21 16:39:01 +02:00
|
|
|
mail_plugins = $mail_plugins quota
|
2016-04-20 21:17:43 +02:00
|
|
|
submission_host = smtp
|
2016-02-17 23:56:40 +02:00
|
|
|
|
2016-02-21 16:09:25 +02:00
|
|
|
service dict {
|
|
|
|
unix_listener dict {
|
|
|
|
group = mail
|
|
|
|
mode = 0660
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-20 21:20:02 +02:00
|
|
|
dict {
|
|
|
|
sieve = sqlite:/etc/dovecot/pigeonhole-sieve.dict
|
|
|
|
}
|
|
|
|
|
2016-02-17 23:56:40 +02:00
|
|
|
###############
|
|
|
|
# Mailboxes
|
|
|
|
###############
|
|
|
|
first_valid_gid = 8
|
|
|
|
first_valid_uid = 8
|
2016-02-24 08:44:49 +02:00
|
|
|
mail_location = maildir:/mail/%u
|
|
|
|
mail_home = /mail/%u
|
2016-02-17 23:56:40 +02:00
|
|
|
mail_uid = mail
|
|
|
|
mail_gid = mail
|
|
|
|
mail_privileged_group = mail
|
|
|
|
mail_access_groups = mail
|
|
|
|
|
2016-02-21 16:07:12 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-17 23:56:40 +02:00
|
|
|
###############
|
|
|
|
# TLS
|
|
|
|
###############
|
|
|
|
ssl = yes
|
2016-02-24 08:44:49 +02:00
|
|
|
ssl_cert = </certs/cert.pem
|
|
|
|
ssl_key = </certs/key.pem
|
2016-02-17 23:56:40 +02:00
|
|
|
|
|
|
|
###############
|
|
|
|
# Authentication
|
|
|
|
###############
|
2016-02-24 08:44:49 +02:00
|
|
|
auth_mechanisms = plain login
|
2016-02-17 23:56:40 +02:00
|
|
|
|
|
|
|
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 {
|
|
|
|
}
|
2016-02-24 08:44:49 +02:00
|
|
|
|
|
|
|
inet_listener {
|
|
|
|
port = 2102
|
2016-02-17 23:56:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
service auth-worker {
|
|
|
|
unix_listener auth-worker {
|
2016-06-19 21:57:02 +02:00
|
|
|
user = dovecot
|
2016-05-06 19:26:11 +02:00
|
|
|
group = mail
|
2016-02-17 23:56:40 +02:00
|
|
|
mode = 0660
|
|
|
|
}
|
|
|
|
user = mail
|
|
|
|
}
|
|
|
|
|
|
|
|
###############
|
|
|
|
# IMAP
|
|
|
|
###############
|
|
|
|
|
|
|
|
protocol imap {
|
2016-06-19 21:57:02 +02:00
|
|
|
mail_plugins = $mail_plugins imap_quota antispam
|
2016-02-17 23:56:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
service imap-login {
|
|
|
|
inet_listener imap {
|
|
|
|
port = 143
|
|
|
|
}
|
|
|
|
inet_listener imaps {
|
|
|
|
port = 993
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###############
|
|
|
|
# Delivery
|
|
|
|
###############
|
|
|
|
|
|
|
|
protocol lmtp {
|
2016-02-21 16:07:12 +02:00
|
|
|
mail_plugins = $mail_plugins sieve
|
2016-02-17 23:56:40 +02:00
|
|
|
recipient_delimiter = +
|
|
|
|
}
|
|
|
|
|
|
|
|
service lmtp {
|
2016-02-24 08:44:49 +02:00
|
|
|
inet_listener lmtp {
|
|
|
|
port = 2525
|
2016-02-17 23:56:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-21 16:39:01 +02:00
|
|
|
plugin {
|
|
|
|
quota = maildir:User quota
|
|
|
|
}
|
|
|
|
|
2016-02-17 23:56:40 +02:00
|
|
|
|
|
|
|
###############
|
|
|
|
# Filtering
|
|
|
|
###############
|
|
|
|
|
|
|
|
service managesieve-login {
|
|
|
|
inet_listener sieve {
|
|
|
|
port = 4190
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugin {
|
|
|
|
sieve_dir = ~/sieve
|
2016-04-20 21:20:02 +02:00
|
|
|
sieve_plugins = sieve_extdata
|
|
|
|
sieve_extensions = +vnd.dovecot.extdata
|
2016-02-24 08:44:49 +02:00
|
|
|
sieve_before = /var/lib/dovecot/before.sieve
|
|
|
|
sieve_default = /var/lib/dovecot/default.sieve
|
|
|
|
sieve_after = /var/lib/dovecot/after.sieve
|
2016-04-20 21:20:02 +02:00
|
|
|
sieve_extdata_dict_uri = proxy::sieve
|
2016-06-19 21:57:02 +02:00
|
|
|
|
|
|
|
antispam_backend = mailtrain
|
|
|
|
antispam_spam = Junk
|
|
|
|
antispam_trash = Trash
|
|
|
|
antispam_mail_sendmail = /usr/bin/rspamc
|
|
|
|
antispam_mail_spam = learn_spam
|
|
|
|
antispam_mail_notspam = learn_ham
|
|
|
|
antispam_mail_sendmail_args = -h;antispam:11334;-P;q1
|
2016-02-17 23:56:40 +02:00
|
|
|
}
|