- 论坛徽章:
- 0
|
强制本地用户给本地用户发信时使用smtp认证问题[问题已解决]
使用 postfix 2.1.1
假设 oss4e.net 是本地域;
- #
- # UCE RESTRICTIONS
- #
- smtpd_delay_reject=no
- #delay_reject 不能是yes;
- #append
- #smtpd_client_restrictions =
- # check_client_access hash:/etc/postfix/my_client_access_list,
- # permit
- #对mail from的限制
- smtpd_sender_restrictions =
- permit_mynetworks,
- permit_sasl_authenticated,
- check_sender_access hash:/etc/postfix/my_sender_access_list,
- permit
- smtpd_tls_auth_only = no
- broken_sasl_auth_clients = yes
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_local_domain =
- smtpd_sasl_security_options = noanonymous
-
- #
- smtpd_recipient_restrictions =
- permit_mynetworks,
- permit_sasl_authenticated,
- check_recipient_access hash:/etc/postfix/my_recipient_access_list,
- reject_non_fqdn_hostname,
- reject_invalid_hostname,
- reject_unknown_hostname,
- reject_non_fqdn_sender,
- reject_non_fqdn_recipient,
- reject_unknown_sender_domain,
- reject_unknown_recipient_domain,
- reject_unauth_destination,
- reject_unauth_pipelining,
- permit_auth_destination
复制代码
- #参考: http://bbs.chinaunix.net/forum/viewtopic.php?p=2289911#2289911
- #参考: http://bbs.chinaunix.net/forum/14/20040607/342903.html
- #vi /etc/postfix/my_sender_access_list
- #当mail from是你的域时,要求验证;逻辑在于:自己不应该从remote给自己发信;
- 127.0 250 welcome from localhost.
- oss4e.net 550 AUTH first,view http://mail.oss4e.net/uce.html for help.
- #
- postmap /etc/postfix/my_sender_access_list
复制代码 |
|