2016-02-15 21:04:01 +01:00
|
|
|
auth_mechanisms = plain login
|
2018-04-18 15:07:58 +02:00
|
|
|
auth_verbose = no
|
|
|
|
auth_debug = no
|
2016-03-03 08:02:56 +01:00
|
|
|
disable_plaintext_auth = yes
|
|
|
|
|
2018-04-18 15:07:58 +02:00
|
|
|
mail_debug = no
|
2016-02-15 21:04:01 +01:00
|
|
|
log_path = /var/log/dovecot/errors.log
|
|
|
|
info_log_path = /var/log/dovecot/info.log
|
|
|
|
#log_timestamp = "%Y-%m-%d %H:%M:%S "
|
|
|
|
|
|
|
|
mail_privileged_group = mail
|
2019-07-15 19:00:23 +02:00
|
|
|
mail_location = maildir:~/.maildir
|
2016-02-15 21:04:01 +01:00
|
|
|
|
2020-05-20 08:37:09 +02:00
|
|
|
postmaster_address = postmaster@{{ mail_domain }}
|
2019-07-24 09:36:54 +02:00
|
|
|
submission_host = 127.0.0.1:10025
|
2016-02-15 21:04:01 +01:00
|
|
|
|
|
|
|
ssl = yes
|
2016-04-01 08:10:00 +02:00
|
|
|
ssl_cert = </etc/dovecot/ssl/{{ mail_server }}.crt
|
|
|
|
ssl_key = </etc/dovecot/ssl/{{ mail_server }}.key
|
2016-02-15 21:04:01 +01:00
|
|
|
ssl_cipher_list = ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
|
|
|
|
|
2019-07-15 19:00:23 +02:00
|
|
|
service lmtp {
|
|
|
|
unix_listener /var/spool/postfix/private/dovecot-lmtpd {
|
|
|
|
group = postfix
|
|
|
|
mode = 0660
|
|
|
|
user = postfix
|
|
|
|
}
|
2016-02-15 21:04:01 +01:00
|
|
|
}
|
|
|
|
service auth {
|
2019-07-15 19:00:23 +02:00
|
|
|
unix_listener /var/spool/postfix/private/dovecot-auth {
|
2016-04-06 21:19:42 +02:00
|
|
|
mode = 0660
|
2016-02-15 21:04:01 +01:00
|
|
|
user = postfix
|
|
|
|
group = postfix
|
|
|
|
}
|
|
|
|
}
|
|
|
|
service imap-login {
|
|
|
|
inet_listener imap {
|
2016-03-03 08:02:56 +01:00
|
|
|
address = 0.0.0.0 ::
|
2016-02-15 21:04:01 +01:00
|
|
|
port = 143
|
|
|
|
}
|
|
|
|
inet_listener imaps {
|
2016-03-03 08:02:56 +01:00
|
|
|
address = 0.0.0.0 ::
|
2016-02-15 21:04:01 +01:00
|
|
|
port = 993
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 19:00:23 +02:00
|
|
|
passdb {
|
|
|
|
driver = ldap
|
|
|
|
args = /etc/dovecot/dovecot-ldap.conf.ext
|
2016-02-15 21:04:01 +01:00
|
|
|
}
|
2019-07-15 19:00:23 +02:00
|
|
|
protocols = "imap lmtp sieve"
|
|
|
|
protocol sieve {
|
|
|
|
userdb {
|
|
|
|
driver = ldap
|
|
|
|
args = /etc/dovecot/dovecot-ldap.conf.ext
|
|
|
|
default_fields = uid=vmail gid=vmail
|
|
|
|
}
|
2016-02-15 21:04:01 +01:00
|
|
|
}
|
|
|
|
protocol imap {
|
2019-07-15 19:00:23 +02:00
|
|
|
userdb {
|
|
|
|
driver = ldap
|
|
|
|
args = /etc/dovecot/dovecot-ldap.conf.ext
|
|
|
|
default_fields = uid=vmail gid=vmail
|
|
|
|
}
|
|
|
|
mail_plugins = "imap_sieve"
|
2016-02-15 21:04:01 +01:00
|
|
|
mail_max_userip_connections = 50
|
|
|
|
}
|
2019-07-15 19:00:23 +02:00
|
|
|
protocol lmtp {
|
|
|
|
userdb {
|
|
|
|
driver = ldap
|
|
|
|
args = /etc/dovecot/dovecot-ldap.conf.lmtp
|
|
|
|
default_fields = uid=vmail gid=vmail
|
|
|
|
}
|
|
|
|
mail_plugins = "sieve notify push_notification"
|
|
|
|
}
|
2016-02-15 21:04:01 +01:00
|
|
|
plugin {
|
2019-07-15 19:00:23 +02:00
|
|
|
imapsieve_mailbox1_before = file:/var/vmail/.sieve/report-spam.sieve
|
|
|
|
imapsieve_mailbox1_causes = COPY
|
|
|
|
imapsieve_mailbox1_name = Junk
|
|
|
|
imapsieve_mailbox2_before = file:/var/vmail/.sieve/report-ham.sieve
|
|
|
|
imapsieve_mailbox2_causes = COPY
|
|
|
|
imapsieve_mailbox2_from = Junk
|
|
|
|
imapsieve_mailbox2_name = *
|
|
|
|
sieve_after = /var/vmail/.sieve/move-spam.sieve
|
|
|
|
sieve_global = /var/vmail/.sieve
|
|
|
|
sieve_global_extensions = +vnd.dovecot.pipe
|
|
|
|
sieve_pipe_bin_dir = /var/vmail/.sieve/bin
|
|
|
|
sieve_plugins = "sieve_imapsieve sieve_extprograms"
|
|
|
|
sieve = file:~/.sieve;active=~/.dovecot.sieve
|
2016-02-15 21:04:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace inbox {
|
|
|
|
type = private
|
|
|
|
inbox = yes
|
|
|
|
|
|
|
|
mailbox Drafts {
|
|
|
|
special_use = \Drafts
|
|
|
|
}
|
|
|
|
mailbox Junk {
|
|
|
|
special_use = \Junk
|
|
|
|
auto = subscribe
|
|
|
|
}
|
|
|
|
mailbox Trash {
|
|
|
|
special_use = \Trash
|
|
|
|
}
|
|
|
|
mailbox Sent {
|
|
|
|
special_use = \Sent
|
|
|
|
}
|
|
|
|
mailbox "Sent Messages" {
|
|
|
|
special_use = \Sent
|
2016-02-15 21:30:24 +01:00
|
|
|
}
|
2016-02-15 21:04:01 +01:00
|
|
|
}
|
|
|
|
|