chore(dovecot): 优化邮箱别名与默认文件夹创建
- 添加 `recipient_delimiter = +` 以支持加号别名。 - 为 Drafts、Sent、Trash、Archive、Spam 配置自动创建。
This commit is contained in:
@@ -11,6 +11,7 @@ ssl_key = </etc/ssl/private/ssl-cert-snakeoil.key
|
|||||||
|
|
||||||
mail_home = /var/mail/vhosts/%d/%n
|
mail_home = /var/mail/vhosts/%d/%n
|
||||||
mail_max_userip_connections = 10
|
mail_max_userip_connections = 10
|
||||||
|
recipient_delimiter = +
|
||||||
|
|
||||||
plugin {
|
plugin {
|
||||||
quota = maildir:User quota
|
quota = maildir:User quota
|
||||||
@@ -27,18 +28,23 @@ auth_policy_request_fields = protocol=imap username=user
|
|||||||
namespace inbox {
|
namespace inbox {
|
||||||
inbox = yes
|
inbox = yes
|
||||||
mailbox Drafts {
|
mailbox Drafts {
|
||||||
|
auto = create
|
||||||
special_use = \Drafts
|
special_use = \Drafts
|
||||||
}
|
}
|
||||||
mailbox Sent {
|
mailbox Sent {
|
||||||
|
auto = create
|
||||||
special_use = \Sent
|
special_use = \Sent
|
||||||
}
|
}
|
||||||
mailbox Trash {
|
mailbox Trash {
|
||||||
|
auto = create
|
||||||
special_use = \Trash
|
special_use = \Trash
|
||||||
}
|
}
|
||||||
mailbox Archive {
|
mailbox Archive {
|
||||||
|
auto = create
|
||||||
special_use = \Archive
|
special_use = \Archive
|
||||||
}
|
}
|
||||||
mailbox Spam {
|
mailbox Spam {
|
||||||
|
auto = create
|
||||||
special_use = \Junk
|
special_use = \Junk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user