2016-02-17 23:56:40 +02:00
|
|
|
###############
|
|
|
|
# General
|
|
|
|
###############
|
|
|
|
protocols = imap lmtp sieve
|
|
|
|
postmaster_address = %{env:POSTMASTER_ADDRESS}
|
|
|
|
hostname = %{env:MAIL_HOSTNAME}
|
2016-02-21 16:39:01 +02:00
|
|
|
mail_plugins = $mail_plugins quota
|
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-02-17 23:56:40 +02:00
|
|
|
###############
|
|
|
|
# Mailboxes
|
|
|
|
###############
|
|
|
|
first_valid_gid = 8
|
|
|
|
first_valid_uid = 8
|
|
|
|
mail_location = maildir:/data/mail/%u
|
|
|
|
mail_home = /data/mail/%u
|
|
|
|
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
|
|
|
|
ssl_cert = </data/ssl/cert.pem
|
|
|
|
ssl_key = </data/ssl/key.pem
|
|
|
|
|
|
|
|
###############
|
|
|
|
# Authentication
|
|
|
|
###############
|
|
|
|
auth_mechanisms = plain login cram-md5
|
|
|
|
|
|
|
|
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 {
|
|
|
|
}
|
|
|
|
unix_listener /var/spool/postfix/private/dovecot-auth {
|
|
|
|
user = postfix
|
|
|
|
group = postfix
|
|
|
|
mode = 0600
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
service auth-worker {
|
|
|
|
unix_listener auth-worker {
|
|
|
|
user = mail
|
|
|
|
group = $default_internal_user
|
|
|
|
mode = 0660
|
|
|
|
}
|
|
|
|
user = mail
|
|
|
|
}
|
|
|
|
|
|
|
|
###############
|
|
|
|
# IMAP
|
|
|
|
###############
|
|
|
|
|
|
|
|
protocol imap {
|
2016-02-21 16:39:01 +02:00
|
|
|
mail_plugins = $mail_plugins imap_quota
|
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 {
|
|
|
|
unix_listener /var/spool/postfix/private/dovecot-lmtp {
|
|
|
|
user = postfix
|
|
|
|
group = postfix
|
|
|
|
mode = 0600
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 = ~/.sieve
|
|
|
|
sieve_dir = ~/sieve
|
2016-02-21 16:07:12 +02:00
|
|
|
sieve_before = /etc/dovecot/before.sieve
|
|
|
|
sieve_default = /etc/dovecot/default.sieve
|
|
|
|
sieve_after = /etc/dovecot/after.sieve
|
2016-02-17 23:56:40 +02:00
|
|
|
}
|