免费注册 查看新帖 |

Chinaunix

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

[Mail] Helo command rejected: need fully-qualified hostname [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-16 14:25 |只看该作者 |倒序浏览
最近刚注意到Postfix外网发信的一个问题,在公司内部使用局域网IP访问正常,能够正常的收发信(我的邮件服务器IP为192.168.1.12)。
可在OE中将服务器的地址由192.168.1.12换为公司的外网IP时则发信出错(已经在路由器上进行了绑定),去查看maillog,信息如下:

Sep 16 14:03:20 mail postfix/smtpd[31957]: connect from unknown[192.168.0.1]
Sep 16 14:03:20 mail postfix/smtpd[31957]: NOQUEUE: reject: RCPT from unknown[192.168.0.1]: 504 5.5.2 <FSYMC>: Helo command rejected: need fully-qualified hostname; from=<test@test.cn> to=<test@test.cn> proto=SMTP helo=<FSYMC>
Sep 16 14:03:20 mail postfix/smtpd[31957]: disconnect from unknown[192.168.0.1]


其中192.168.0.1为我的路由器地址。疑问的是为什么经过路由器一转就发送失败了呢?为什么会拒绝路由器的请求?Helo command rejected: need fully-qualified hostname这句话的字面意思我虽然明白,可具体含义是什么呢?

另外,在maillog中也发现了其他IP请求信息:

Sep 13 04:12:36 mail postfix/smtpd[5613]: connect from 118-168-131-244.dynamic.hinet.net[118.168.131.244]
Sep 13 04:12:37 mail postfix/smtpd[5613]: NOQUEUE: reject: RCPT from 118-168-131-244.dynamic.hinet.net[118.168.131.244]: 504 5.5.2 <xxx.xxx.x.xxx>: Helo command rejected: need fully-qualified hostname; from=<hi7176s.pp4580@msa.hinet.net> to=<poi@mail2000.com.tw> proto=SMTP helo=<xxx.xxx.x.xxx>
Sep 13 04:12:37 mail postfix/smtpd[5613]: lost connection after RCPT from 118-168-131-244.dynamic.hinet.net[118.168.131.244]
Sep 13 04:12:37 mail postfix/smtpd[5613]: disconnect from 118-168-131-244.dynamic.hinet.net[118.168.131.244]
Sep 13 04:15:57 mail postfix/anvil[5614]: statistics: max connection rate 1/60s for (smtp:118.168.131.244) at Sep 13 04:12:36
Sep 13 04:15:57 mail postfix/anvil[5614]: statistics: max connection count 1 for (smtp:118.168.131.244) at Sep 13 04:12:36
Sep 13 04:15:57 mail postfix/anvil[5614]: statistics: max cache size 1 at Sep 13 04:12:36


其中xxx.xxx.x.xxx为我的外网IP。
虽然该118.168.131.244已经被reject了,可为什么会有类似的信息出现呢?原理我还是没搞清楚,请高手帮忙看看,帮忙解释一下,感觉我现在的配置很不像样子……

论坛徽章:
0
2 [报告]
发表于 2009-09-16 15:34 |只看该作者

回复 #1 mildyi0425 的帖子

<xxx.xxx.x.xxx>: Helo command rejected: need fully-qualified hostname; from=<hi7176s.pp4580@msa.hinet.net> to=<poi@mail2000.com.tw> proto=SMTP helo=<xxx.xxx.x.xxx>

要完整的主机名。所以IP不行

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
3 [报告]
发表于 2009-09-16 16:44 |只看该作者
helo也是检测垃圾邮件的一种方法

论坛徽章:
0
4 [报告]
发表于 2009-09-16 23:13 |只看该作者
原帖由 scyzxp 于 2009-9-16 15:34 发表
: Helo command rejected: need fully-qualified hostname; from= to= proto=SMTP helo=

要完整的主机名。所以IP不行


那我该怎么调整才能既通过路由器又能避免垃圾邮件呢?将外网IP绑定域名?将我的外网IP xxx.xxx.x.xxx在dns上绑定为诸如mail.test.com此类,然后OE端填写服务器的时候不写IP,改写mail.test.com吗?如果这样调整能使postfix接受路由器的请求吗?额。。。。。明天上班回公司试试……

论坛徽章:
0
5 [报告]
发表于 2009-09-16 23:16 |只看该作者
原帖由 ruochen 于 2009-9-16 16:44 发表
helo也是检测垃圾邮件的一种方法


现在心里疑惑的是为什么服务器直接写192.168.1.12正常(我本机的IP是192.168.1.97),写外网IP经过路由器192.168.0.1后就不行了……
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP