2026-06-16 23:15:35 +08:00
|
|
|
protocols = imap pop3 lmtp
|
2026-06-14 01:07:48 +08:00
|
|
|
listen = *
|
|
|
|
|
base_dir = /var/run/dovecot/
|
|
|
|
|
|
|
|
|
|
log_path = /dev/stderr
|
|
|
|
|
info_log_path = /dev/stdout
|
|
|
|
|
|
|
|
|
|
ssl = yes
|
|
|
|
|
ssl_cert = </etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
|
|
|
ssl_key = </etc/ssl/private/ssl-cert-snakeoil.key
|
|
|
|
|
|
|
|
|
|
mail_home = /var/mail/vhosts/%d/%n
|
2026-06-23 11:25:38 +08:00
|
|
|
mail_max_userip_connections = 10
|
2026-06-23 11:32:14 +08:00
|
|
|
recipient_delimiter = +
|
2026-06-23 11:25:38 +08:00
|
|
|
|
|
|
|
|
plugin {
|
|
|
|
|
quota = maildir:User quota
|
|
|
|
|
quota_rule = *:storage=1G
|
|
|
|
|
# auth_policy_server is configured via dovecot-sql.conf.ext user_query
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
auth_policy_server_url = http://127.0.0.1:8080/auth-policy
|
|
|
|
|
auth_policy_server_api_header = Content-Type: application/json
|
|
|
|
|
auth_policy_hash_mech = sha256
|
|
|
|
|
auth_policy_hash_truncate = 12
|
2026-06-23 15:07:15 +08:00
|
|
|
auth_policy_hash_nonce = __LANQIN_AUTH_POLICY_HASH_NONCE__
|
|
|
|
|
auth_policy_request_attributes = protocol=imap username=user
|
2026-06-23 11:25:38 +08:00
|
|
|
|
2026-06-14 01:07:48 +08:00
|
|
|
namespace inbox {
|
|
|
|
|
inbox = yes
|
2026-06-16 21:48:42 +08:00
|
|
|
mailbox Drafts {
|
2026-06-23 11:32:14 +08:00
|
|
|
auto = create
|
2026-06-16 21:48:42 +08:00
|
|
|
special_use = \Drafts
|
|
|
|
|
}
|
|
|
|
|
mailbox Sent {
|
2026-06-23 11:32:14 +08:00
|
|
|
auto = create
|
2026-06-16 21:48:42 +08:00
|
|
|
special_use = \Sent
|
|
|
|
|
}
|
|
|
|
|
mailbox Trash {
|
2026-06-23 11:32:14 +08:00
|
|
|
auto = create
|
2026-06-16 21:48:42 +08:00
|
|
|
special_use = \Trash
|
|
|
|
|
}
|
|
|
|
|
mailbox Archive {
|
2026-06-23 11:32:14 +08:00
|
|
|
auto = create
|
2026-06-16 21:48:42 +08:00
|
|
|
special_use = \Archive
|
|
|
|
|
}
|
|
|
|
|
mailbox Spam {
|
2026-06-23 11:32:14 +08:00
|
|
|
auto = create
|
2026-06-16 21:48:42 +08:00
|
|
|
special_use = \Junk
|
|
|
|
|
}
|
2026-06-14 01:07:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
passdb {
|
|
|
|
|
driver = sql
|
|
|
|
|
args = /etc/dovecot/dovecot-sql.conf.ext
|
|
|
|
|
}
|
|
|
|
|
userdb {
|
|
|
|
|
driver = sql
|
|
|
|
|
args = /etc/dovecot/dovecot-sql.conf.ext
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-23 11:25:38 +08:00
|
|
|
protocol imap {
|
|
|
|
|
mail_plugins = quota imap_quota
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protocol pop3 {
|
|
|
|
|
mail_plugins = quota
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-14 01:07:48 +08:00
|
|
|
service imap-login {
|
2026-06-16 21:48:42 +08:00
|
|
|
inet_listener imaps {
|
|
|
|
|
port = 993
|
|
|
|
|
ssl = yes
|
|
|
|
|
}
|
2026-06-14 01:07:48 +08:00
|
|
|
}
|
|
|
|
|
|
2026-06-16 23:15:35 +08:00
|
|
|
service pop3-login {
|
|
|
|
|
inet_listener pop3s {
|
|
|
|
|
port = 995
|
|
|
|
|
ssl = yes
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-14 01:07:48 +08:00
|
|
|
service lmtp {
|
2026-06-16 21:48:42 +08:00
|
|
|
inet_listener lmtp {
|
|
|
|
|
address = 0.0.0.0
|
|
|
|
|
port = 24
|
|
|
|
|
}
|
2026-06-14 01:07:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
service auth {
|
|
|
|
|
inet_listener postfix-auth {
|
|
|
|
|
address = 0.0.0.0
|
|
|
|
|
port = 12345
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protocol lmtp {
|
|
|
|
|
postmaster_address = postmaster@localhost
|
2026-06-17 00:19:40 +08:00
|
|
|
recipient_delimiter = +
|
2026-06-17 14:15:03 +08:00
|
|
|
lda_mailbox_autocreate = yes
|
2026-06-17 00:19:40 +08:00
|
|
|
lmtp_save_to_detail_mailbox = yes
|
2026-06-14 01:07:48 +08:00
|
|
|
}
|