- 论坛徽章:
- 0
|
MichaelBibby 老大
今天配置身份严重过程中 发现一个问题
/etc/authmysqlrc 里已修改
DEFAULT_DOMAIN 为 test.com
如果是不选择身份验证发不了邮件,
如果是用户test,发不了邮件,但用户是test@test.com就能发邮件。
用户是test或test@test.com都能收到有邮件
认证的配置是从论坛找的
##############SASL####################
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unknown_sender_domain,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_unauth_destination,
permit
smtpd_sender_login_maps =
mysql:/etc/postfix/mysql_virtual_sender_maps.cf,
mysql:/etc/postfix/mysql_virtual_alias_maps.cf
smtpd_reject_unlisted_sender = yes
smtpd_sender_restrictions =
reject_sender_login_mismatch,
reject_authenticated_sender_login_mismatch,
reject_unauthenticated_sender_login_mismatch |
|