Linux

電子郵件未發送

  • January 17, 2013

我正在使用 CPanel 設置執行 exim。但是,我正在檢查 var/log/exim_rejectlog 並沒有看到此 hotmail 帳戶出現任何問題。它只是沒有列出。但是郵件進不去。

我試過這個:

exim -bt MYEMAIL@hotmail.com
MYEMAIL@hotmail.com
 router = lookuphost, transport = remote_smtp
 host mx4.hotmail.com [65.54.188.72]  MX=5
 host mx4.hotmail.com [65.54.188.94]  MX=5
 host mx4.hotmail.com [65.55.37.88]   MX=5
 host mx4.hotmail.com [65.55.37.104]  MX=5
 host mx4.hotmail.com [65.55.92.136]  MX=5
 host mx4.hotmail.com [65.55.92.152]  MX=5
 host mx4.hotmail.com [65.55.92.184]  MX=5
 host mx4.hotmail.com [65.54.188.110] MX=5
 host mx4.hotmail.com [65.55.37.120]  MX=5
 host mx4.hotmail.com [65.54.188.126] MX=5
 host mx4.hotmail.com [65.55.92.168]  MX=5
 host mx4.hotmail.com [65.55.37.72]   MX=5
root@ns1 [~]# exim -bh 65.54.188.72

**** SMTP testing session as if from host 65.54.188.72
**** but without any ident (RFC 1413) callback.
**** This is not for real!

>>> host in hosts_connection_nolog? no (option unset)
LOG: SMTP connection from [65.54.188.72]
>>> host in host_lookup? no (option unset)
>>> host in host_reject_connection? no (option unset)
>>> host in sender_unqualified_hosts? no (option unset)
>>> host in recipient_unqualified_hosts? no (option unset)
>>> host in helo_verify_hosts? no (option unset)
>>> host in helo_try_verify_hosts? no (option unset)
>>> host in helo_accept_junk_hosts? yes (matched "*")
>>> using ACL "acl_smtp_connect"
>>> processing "accept"
>>> check hosts = +trustedmailhosts
>>> sender host name required, to match against lsearch;/etc/trustedmailhosts
>>> looking up host name for 65.54.188.72
>>> IP address lookup yielded bay0-mc1-f.bay0.hotmail.com
>>> gethostbyname2 looked up these IP addresses:
>>>   name=bay0-mc1-f.bay0.hotmail.com address=65.54.188.72
>>> checking addresses for bay0-mc1-f.bay0.hotmail.com
>>>   65.54.188.72 OK
>>> host in "lsearch;/etc/trustedmailhosts"? no (end of list)
>>> host in "+trustedmailhosts"? no (end of list)
>>> accept: condition test failed in ACL "acl_smtp_connect"
>>> processing "accept"
>>> 65.54.188.72 in "iplsearch;/etc/trustedmailhosts"? no (end of list)
>>> check condition = ${if match_ip{$sender_host_address}{iplsearch;/etc/trustedmailhosts}{1}{0}}
>>>                 = 0
>>> accept: condition test failed in ACL "acl_smtp_connect"
>>> processing "accept"
>>> check hosts = +relay_hosts : +loopback
>>> host in "net-iplsearch;/etc/relayhosts"? no (end of list)
>>> host in "<; 127.0.0.0/8 ; 0.0.0.0 ; ::1 ; 0000:0000:0000:0000:0000:ffff:7f00:0000/8"? no (end of list)
>>> host in "+relay_hosts : +loopback"? no (end of list)
>>> accept: condition test failed in ACL "acl_smtp_connect"
>>> processing "accept"
>>> check hosts = +relay_hosts : +backupmx_hosts
>>> host in "lsearch;/etc/backupmxhosts"? no (end of list)
>>> host in "+relay_hosts : +backupmx_hosts"? no (end of list)
>>> accept: condition test failed in ACL "acl_smtp_connect"
>>> processing "accept"
>>> check condition = ${if eq {$interface_port}{25}{no}{yes}}
>>>                 = yes
>>> accept: condition test succeeded in ACL "acl_smtp_connect"
220-ns1.MYDOMAINNAME.COM ESMTP Exim 4.80 #2 Thu, 17 Jan 2013 15:14:46 -0500
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.

/var/log/maillog 不包含或顯示電子郵件的任何資訊。

您將需要查看郵件日誌以了解發生了什麼。它通常位於 /var/log/ 中,稱為 maillog 或 mail.log。

只需在日誌文件中搜尋電子郵件地址。這將告訴您每次傳遞嘗試以及成功或失敗的原因。

如果您通過其他提供商智能託管您的所有電子郵件,您將需要要求他們進行調查,因為最終傳遞的日誌將在他們身邊。

在一段時間內成功地將電子郵件持續發送到 hotmail 並不是一件容易的事(儘管我已經有一段時間沒有嘗試過了)。

引用自:https://serverfault.com/questions/470142