今早公司的MAIL出问题了,无赖,使用自己元旦节前架设的FREEBSD平台邮件系统先顶一下。没想到反应发hotmail的邮箱,发信完了,好长时间没收到,我想:这个系统不至于吧,开始查找原因:
1。亲自发一封到hotmail,查看log如下:
Jan 9 09:21:37 mail postfix/smtp[958]: EA43B28417: lost connection with mx4.hotmail.com[65.54.244
.232] while sending message body
Jan 9 09:23:44 mail postfix/smtp[958]: EA43B28417: to=< [email]dengtu82@hotmail.com[/email]>, relay=mx3.hotmail.c
om[65.54.244.72]:25, delay=312, delays=0.31/0.04/189/123, dsn=4.4.2, status=deferred (lost connect
ion with mx3.hotmail.com[65.54.244.72] while sending message body)
.232] while sending message body
Jan 9 09:23:44 mail postfix/smtp[958]: EA43B28417: to=< [email]dengtu82@hotmail.com[/email]>, relay=mx3.hotmail.c
om[65.54.244.72]:25, delay=312, delays=0.31/0.04/189/123, dsn=4.4.2, status=deferred (lost connect
ion with mx3.hotmail.com[65.54.244.72] while sending message body)
2。判断hotmail需要解析heloname的A记录,如果这个A没有指到邮件服务器上,就肯定会被拒收.
3。解决办法:
postconf -e "smtp_helo_name = 我的邮件服务器的域名(A记录)" 或者直接修改main.cf(我的MTA是POSTFIX)
mail# postconf -e "smtp_helo_name = mail.trinet.eb.cn"
mail# postfix reload
postfix/postfix-script: refreshing the Postfix mail system
mail# postfix stop
postfix/postfix-script: stopping the Postfix mail system
mail# postfix start
postfix/postfix-script: starting the Postfix mail system
postfix/postfix-script: refreshing the Postfix mail system
mail# postfix stop
postfix/postfix-script: stopping the Postfix mail system
mail# postfix start
postfix/postfix-script: starting the Postfix mail system
4。再次测试发信,已经OK,见下面红色部分)
Jan 9 10:02:19 mail postfix/qmgr[1296]: 46B3128400: from=<
[email]leeki.yan@trinet.eb.cn[/email]>, size=3542, nrcpt=1 (queue active)
Jan 9 10:02:20 mail postfix/smtp[1303]: 46B3128400: to=< [email]dengtu82@hotmail.com[/email]>, relay=mx3.hotmail.com[65.54.245.72]:25, delay=1.7, delays=0.09/0.07/0.84/0.71, dsn=2.0.0, status=sent (250 < 00b301c85263$cb8cee70$de04040a@triumphweihu> Queued mail for delivery)
Jan 9 10:02:20 mail postfix/qmgr[1296]: 46B3128400: removed
Jan 9 10:02:20 mail postfix/smtp[1303]: 46B3128400: to=< [email]dengtu82@hotmail.com[/email]>, relay=mx3.hotmail.com[65.54.245.72]:25, delay=1.7, delays=0.09/0.07/0.84/0.71, dsn=2.0.0, status=sent (250 < 00b301c85263$cb8cee70$de04040a@triumphweihu> Queued mail for delivery)
Jan 9 10:02:20 mail postfix/qmgr[1296]: 46B3128400: removed
5。以上是发信hotmail,可能像新浪等等,也可以参照此法一试!