Chinaunix

标题: postfix中继设置问题 [打印本页]

作者: shineboy816    时间: 2009-07-07 14:37
标题: 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.5  RELAY -----------------让10.0.5.0/24能在192.168.16.251上发邮件。

然后执行portmap hash:/etc/postfix/access
service postfix restart

最后操作时候还是报中继拒绝。请问有人知道不,谢谢!

相关日志为:
Jul  7 14:21:01 mail postfix/smtpd[8791]: disconnect from unknown[192.168.16.15]
Jul  7 14:24:21 mail postfix/anvil[8793]: statistics: max connection rate 1/60s for (smtp:192.168.16.15) at Jul  7 14:20:59
Jul  7 14:24:21 mail postfix/anvil[8793]: statistics: max connection count 1 for (smtp:192.168.16.15) at Jul  7 14:20:59
Jul  7 14:24:21 mail postfix/anvil[8793]: statistics: max cache size 1 at Jul  7 14:20:59
Jul  7 14:26:04 mail postfix/postfix-script: stopping the Postfix mail system
Jul  7 14:26:04 mail postfix/master[8784]: terminating on signal 15
Jul  7 14:26:04 mail postfix/postfix-script: starting the Postfix mail system
Jul  7 14:26:04 mail postfix/master[8869]: daemon started -- version 2.3.3, configuration /etc/postfix
Jul  7 14:26:50 mail postfix/smtpd[8875]: connect from unknown[192.168.16.15]
Jul  7 14:26:51 mail postfix/smtpd[8875]: NOQUEUE: reject: RCPT from unknown[192.168.16.15]: 554 5.7.1 <redhat@yutian.com>: Relay access denied; from=<admin@3lmj.cn> to=<redhat@yutian.com> proto=ESMTP helo=<airway_guolt>
Jul  7 14:26:55 mail postfix/smtpd[8875]: lost connection after RCPT from unknown[192.168.16.15]
Jul  7 14:26:55 mail postfix/smtpd[8875]: disconnect from unknown[192.168.16.15]
Jul  7 14:30:15 mail postfix/anvil[8877]: statistics: max connection rate 1/60s for (smtp:192.168.16.15) at Jul  7 14:26:50
Jul  7 14:30:15 mail postfix/anvil[8877]: statistics: max connection count 1 for (smtp:192.168.16.15) at Jul  7 14:26:50
Jul  7 14:30:15 mail postfix/anvil[8877]: statistics: max cache size 1 at Jul  7 14:26:50
作者: xmbbx    时间: 2009-07-08 09:11
设置permit_mynetworks,把允许其中继的ip加入mynetworks
作者: swemail    时间: 2014-01-15 10:39
编辑/etc/postfix/main.cf
查找#relayhost=这一行,修改为
relayhost=relaymail.swemail.com.cn(注意去除前面的#号)

设置完成后重启Postfix服务
/etc/rc.d/init.d/postfix restart





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2