- 论坛徽章:
- 0
|
配置基本情况:
1、认证使用的机制是:pam(关于pam的文件都为默认值,没有修改)
2、认证测试通过
[root@mail lib]# testsaslauthd -u user01 -p xxx
0: OK "Success."
3、/etc/postfix/main.cf中也添加了认证语句
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restriction = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_option = noanonymous
故障现象:可以通过mynetworks中的地址发送到非本地域的邮箱,但是不能通过非mynetworks中的地址发送到非本地域的邮箱(好像是认证机制没有发挥作用)
以下是mainlog记录
Mar 13 12:02:08 mail postfix/smtpd[15386]: connect from unknown[xx.xxx.x.xxx]
Mar 13 12:02:08 mail postfix/smtpd[15386]: NOQUEUE: reject: RCPT from unknown[xx.xxx.x.xxx]: 554 5.7.1 <postmaster@xxxx.com.cn>: Relay access denied; from=<user01@bbb.com.cn> to=<postmaster@xxxx.com.cn> proto=ESMTP helo=<postmaster>
Mar 13 12:02:11 mail postfix/smtpd[15386]: disconnect from unknown[xx.xxx.x.xxx]
请问各位大虾,问题出在哪里???? |
|