移动139邮箱不接收监控邮件
最近这两天没有收到DB的监控邮件,通过对邮件日志的分析,发现了如下信息:
# tail -f /var/spool/mail/root
......
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
--p4C24DBY021092.1305165853/localhost.localdomain
The original message was received at Thu, 12 May 2011 10:04:13 +0800
from localhost.localdomain [127.0.0.1]
----- The following addresses had permanent fatal errors -----
<xxxxxx@139.com>
(reason: 550 Requested action not taken: mail eawQrJDrH9sfQMtNISs4AA--.333S2 is rejected, 1767)
----- Transcript of session follows -----
... while talking to mx1.mail.139.com.:
>>> DATA
<<< 550 Requested action not taken: mail eawQrJDrH9sfQMtNISs4AA--.333S2 is rejected, 1767
554 5.0.0 Service unavailable
--p4C24DBY021092.1305165853/localhost.localdomain
Content-Type: message/delivery-status
Reporting-MTA: dns; localhost.localdomain
Received-From-MTA: DNS; localhost.localdomain
Arrival-Date: Thu, 12 May 2011 10:04:13 +0800
Final-Recipient: RFC822; xxxxxxxxxx@139.com
Action: failed
Status: 5.2.0
Remote-MTA: DNS; mx1.mail.139.com
Diagnostic-Code: SMTP; 550 Requested action not taken: mail eawQrJDrH9sfQMtNISs4AA--.333S2 is rejected, 1767
Last-Attempt-Date: Thu, 12 May 2011 10:04:13 +0800
......
通过以上的日志片段得知应该是在发送邮件时被mail server rejected了。通过命令行模式测试一下整个发送邮件的过程:
# telnet mx1.mail.139.com 25
Trying 221.176.9.178...
Connected to mx1.mail.139.com (221.176.9.178).
Escape character is '^]'.
220 139.com Anti-spam GT for Coremail System (caixun[20100128])
HELO $mailDomain(即@符后面的东东)
250 OK
MAIL FROM:<root@$mailDomain>
250 Mail OK
RCPT TO:<$mailboxName>
250 Mail OK
DATA
354 End data with <CR><LF>.<CR><LF>
此处输入邮件内容
.
Trying 221.176.9.178...
Connected to mx1.mail.139.com (221.176.9.178).
Escape character is '^]'.
220 139.com Anti-spam GT for Coremail System (caixun[20100128])
HELO $mailDomain(即@符后面的东东)
250 OK
MAIL FROM:<root@$mailDomain>
250 Mail OK
RCPT TO:<$mailboxName>
250 Mail OK
DATA
354 End data with <CR><LF>.<CR><LF>
此处输入邮件内容
.
450 Requested action not taken: d6wQrJCLT7i_QctN8UA4AA--.475S2, please try again
在邮件最后出现了问题,针对此问题搜索了一下,用以下方法解决了此问题:
vi /etc/mail/sendmail.cf
找到
#Dj$w.Foo.COM
在后面添加自己的邮件域,重启sendmail,发邮件成功。
参考:
http://www.5dmail.net/html/2006-11-1/2006111120755.htm
http://blog.csdn.net/remotesupport/archive/2011/02/27/6211883.aspx