![如何创建账户 -> 密码列表并与 Postfix 和 Dovecot 共享?](https://linux22.com/image/549102/%E5%A6%82%E4%BD%95%E5%88%9B%E5%BB%BA%E8%B4%A6%E6%88%B7%20-%3E%20%E5%AF%86%E7%A0%81%E5%88%97%E8%A1%A8%E5%B9%B6%E4%B8%8E%20Postfix%20%E5%92%8C%20Dovecot%20%E5%85%B1%E4%BA%AB%EF%BC%9F.png)
这是我的 Postfix 配置:
root@vmi2198:/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = maildir/
inet_interfaces = all
mailbox_size_limit = 0
mydestination = /etc/postfix/mydestination
mydomain = example.net
myhostname = mail.example.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_mailbox_base = /home/postfix/mail
virtual_mailbox_domains = /etc/postfix/virtual_domains
virtual_mailbox_maps = hash:/etc/postfix/virtual
我已经设置了 PATH 来存储消息并创建地图,例如:
[email protected] example.com/info/
现在我要用密码(SASL)保护我的账户,如何创建账户->密码列表,并为 postfix 和 Dovecot 共享此列表?
答案1
Dovecot 文档中对此进行了描述: http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL
在 Postfix 文档中: http://www.postfix.org/SASL_README.html#server_dovecot