2020-10-27 20:21:10 +09:00
|
|
|
protocols = imap pop3 lmtp
|
|
|
|
|
|
|
|
ssl = yes
|
2020-11-03 01:40:20 +09:00
|
|
|
ssl_cert = </etc/ssl/mail.crt
|
|
|
|
ssl_key = </etc/ssl/mail.key
|
2020-10-27 20:21:10 +09:00
|
|
|
ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
|
|
|
|
|
|
|
|
listen = *, ::
|
|
|
|
dict {
|
|
|
|
#quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
|
|
|
|
#expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
|
|
|
|
}
|
|
|
|
|
2020-11-03 01:40:20 +09:00
|
|
|
disable_plaintext_auth = no
|
2020-10-27 20:21:10 +09:00
|
|
|
auth_mechanisms = plain login
|
|
|
|
mail_access_groups = vmail
|
|
|
|
default_login_user = vmail
|
2020-11-01 02:19:13 +09:00
|
|
|
first_valid_uid = 2222
|
|
|
|
first_valid_gid = 2222
|
2020-10-27 20:21:10 +09:00
|
|
|
mail_location = maildir:/var/mail/%d/%n
|
2020-11-03 01:40:20 +09:00
|
|
|
auth_verbose_passwords = sha1
|
|
|
|
auth_debug = yes
|
|
|
|
|
2020-10-27 20:21:10 +09:00
|
|
|
|
|
|
|
passdb {
|
|
|
|
driver = passwd-file
|
2020-11-03 01:40:20 +09:00
|
|
|
args = scheme=SHA512-CRYPT /etc/mail/passwd
|
2020-10-27 20:21:10 +09:00
|
|
|
}
|
|
|
|
userdb {
|
|
|
|
driver = static
|
2020-11-01 02:19:13 +09:00
|
|
|
args = uid=2222 gid=2222 home=/var/mail/%d/%n allow_all_users=yes
|
2020-11-03 01:40:20 +09:00
|
|
|
auth_verbose = yes
|
2020-10-27 20:21:10 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
service auth {
|
|
|
|
unix_listener auth-client {
|
2020-11-03 01:40:20 +09:00
|
|
|
user = postfix
|
2020-10-27 20:21:10 +09:00
|
|
|
group = postfix
|
|
|
|
mode = 0660
|
|
|
|
}
|
|
|
|
user = root
|
|
|
|
}
|
|
|
|
|
|
|
|
service imap-login {
|
|
|
|
process_min_avail = 1
|
|
|
|
user = vmail
|
|
|
|
}
|
|
|
|
|
|
|
|
protocol lmtp {
|
2020-11-01 02:19:13 +09:00
|
|
|
postmaster_address = %POSTMASTER_ADDRESS%
|
2020-10-27 20:21:10 +09:00
|
|
|
mail_plugins = $mail_plugins sieve
|
|
|
|
}
|
|
|
|
|
|
|
|
protocol imap {
|
|
|
|
mail_max_userip_connections = 30
|
|
|
|
}
|
|
|
|
|
2020-11-03 01:40:20 +09:00
|
|
|
service stats {
|
|
|
|
unix_listener stats-reader {
|
|
|
|
user = vmail
|
|
|
|
group = vmail
|
|
|
|
mode = 0660
|
|
|
|
}
|
|
|
|
|
|
|
|
unix_listener stats-writer {
|
|
|
|
user = vmail
|
|
|
|
group = vmail
|
|
|
|
mode = 0660
|
|
|
|
}
|
|
|
|
}
|
2020-11-01 02:19:13 +09:00
|
|
|
|
2020-10-27 20:21:10 +09:00
|
|
|
!include_try conf.d/*.conf
|
|
|
|
!include_try local.conf
|