- 论坛徽章:
- 0
|
请问高手,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 |
|