6ebbb47012
- 将 Postfix/Dovecot 的 SQL 查询改为忽略大小写匹配,减少地址大小写导致的投递失败。 - 支持带 `+` 的详细地址解析,并基于域表关联定位邮箱目录。 - 启用 `lda_mailbox_autocreate`,确保投递到详细邮箱时可自动创建邮箱目录。
75 lines
1.1 KiB
Plaintext
75 lines
1.1 KiB
Plaintext
protocols = imap pop3 lmtp
|
|
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
|
|
namespace inbox {
|
|
inbox = yes
|
|
mailbox Drafts {
|
|
special_use = \Drafts
|
|
}
|
|
mailbox Sent {
|
|
special_use = \Sent
|
|
}
|
|
mailbox Trash {
|
|
special_use = \Trash
|
|
}
|
|
mailbox Archive {
|
|
special_use = \Archive
|
|
}
|
|
mailbox Spam {
|
|
special_use = \Junk
|
|
}
|
|
}
|
|
|
|
passdb {
|
|
driver = sql
|
|
args = /etc/dovecot/dovecot-sql.conf.ext
|
|
}
|
|
userdb {
|
|
driver = sql
|
|
args = /etc/dovecot/dovecot-sql.conf.ext
|
|
}
|
|
|
|
service imap-login {
|
|
inet_listener imaps {
|
|
port = 993
|
|
ssl = yes
|
|
}
|
|
}
|
|
|
|
service pop3-login {
|
|
inet_listener pop3s {
|
|
port = 995
|
|
ssl = yes
|
|
}
|
|
}
|
|
|
|
service lmtp {
|
|
inet_listener lmtp {
|
|
address = 0.0.0.0
|
|
port = 24
|
|
}
|
|
}
|
|
|
|
service auth {
|
|
inet_listener postfix-auth {
|
|
address = 0.0.0.0
|
|
port = 12345
|
|
}
|
|
}
|
|
|
|
protocol lmtp {
|
|
postmaster_address = postmaster@localhost
|
|
recipient_delimiter = +
|
|
lda_mailbox_autocreate = yes
|
|
lmtp_save_to_detail_mailbox = yes
|
|
}
|