2020-10-27 20:21:10 +09:00
|
|
|
protocols = imap pop3 lmtp
|
|
|
|
|
|
|
|
ssl = yes
|
2021-03-25 07:31:43 +09:00
|
|
|
# `<` means read from file
|
|
|
|
ssl_cert = <%cert_file%
|
|
|
|
ssl_key = <%key_file%
|
|
|
|
ssl_cipher_list = ALL:!LOW:!SSLv2:!SSLv3:!EXP:!aNULL
|
2020-10-27 20:21:10 +09:00
|
|
|
|
|
|
|
listen = *, ::
|
|
|
|
dict {
|
2020-11-08 02:43:25 +09:00
|
|
|
#quota = mysql:/etc/mail/dovecot/dovecot-dict-sql.conf.ext
|
|
|
|
#expire = sqlite:/etc/mail/dovecot/dovecot-dict-sql.conf.ext
|
2020-10-27 20:21:10 +09:00
|
|
|
}
|
|
|
|
|
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 {
|
2021-03-25 07:31:43 +09:00
|
|
|
unix_listener /var/spool/postfix/private/auth {
|
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 {
|
2021-03-25 07:31:43 +09:00
|
|
|
postmaster_address = %postmaster_address%
|
2020-10-27 20:21:10 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
2021-03-25 07:31:43 +09:00
|
|
|
# !include_try conf.d/*.conf
|
|
|
|
# !include_try local.conf
|