然后执行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(注意去除前面的#号)