免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7823 | 回复: 2
打印 上一主题 下一主题

[Mail] postfix中继设置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-07 14:37 |只看该作者 |倒序浏览
请问高手,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

论坛徽章:
0
2 [报告]
发表于 2009-07-08 09:11 |只看该作者
设置permit_mynetworks,把允许其中继的ip加入mynetworks

论坛徽章:
0
3 [报告]
发表于 2014-01-15 10:39 |只看该作者
编辑/etc/postfix/main.cf
查找#relayhost=这一行,修改为
relayhost=relaymail.swemail.com.cn(注意去除前面的#号)

设置完成后重启Postfix服务
/etc/rc.d/init.d/postfix restart
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP