postfix中继设置问题
请问高手,postfix中继如何设置啊?本人设置了两个mta,分别为10.0.5.155,192.168.16.251
本人这样操作:
在192.168.16.251上设置
main.cf:
smtpd_client_restrictions =
check_client_access hash:/etc/postfix/access
然后修改文件access:
10.0.5RELAY -----------------让10.0.5.0/24能在192.168.16.251上发邮件。
然后执行portmap hash:/etc/postfix/access
service postfix restart
最后操作时候还是报中继拒绝。请问有人知道不,谢谢!
相关日志为:
Jul7 14:21:01 mail postfix/smtpd: disconnect from unknown
Jul7 14:24:21 mail postfix/anvil: statistics: max connection rate 1/60s for (smtp:192.168.16.15) at Jul7 14:20:59
Jul7 14:24:21 mail postfix/anvil: statistics: max connection count 1 for (smtp:192.168.16.15) at Jul7 14:20:59
Jul7 14:24:21 mail postfix/anvil: statistics: max cache size 1 at Jul7 14:20:59
Jul7 14:26:04 mail postfix/postfix-script: stopping the Postfix mail system
Jul7 14:26:04 mail postfix/master: terminating on signal 15
Jul7 14:26:04 mail postfix/postfix-script: starting the Postfix mail system
Jul7 14:26:04 mail postfix/master: daemon started -- version 2.3.3, configuration /etc/postfix
Jul7 14:26:50 mail postfix/smtpd: connect from unknown
Jul7 14:26:51 mail postfix/smtpd: NOQUEUE: reject: RCPT from unknown: 554 5.7.1 <redhat@yutian.com>: Relay access denied; from=<admin@3lmj.cn> to=<redhat@yutian.com> proto=ESMTP helo=<airway_guolt>
Jul7 14:26:55 mail postfix/smtpd: lost connection after RCPT from unknown
Jul7 14:26:55 mail postfix/smtpd: disconnect from unknown
Jul7 14:30:15 mail postfix/anvil: statistics: max connection rate 1/60s for (smtp:192.168.16.15) at Jul7 14:26:50
Jul7 14:30:15 mail postfix/anvil: statistics: max connection count 1 for (smtp:192.168.16.15) at Jul7 14:26:50
Jul7 14:30:15 mail postfix/anvil: statistics: max cache size 1 at Jul7 14:26:50 设置permit_mynetworks,把允许其中继的ip加入mynetworks 编辑/etc/postfix/main.cf
查找#relayhost=这一行,修改为
relayhost=relaymail.swemail.com.cn(注意去除前面的#号)
设置完成后重启Postfix服务
/etc/rc.d/init.d/postfix restart
页:
[1]