如何创建账户 -> 密码列表并与 Postfix 和 Dovecot 共享?

如何创建账户 -> 密码列表并与 Postfix 和 Dovecot 共享?

这是我的 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

相关内容