Linux

451 發送電子郵件的臨時本地問題

  • June 14, 2012
2012-06-14 21:57:14 cwd=/etc/csf 4 args: /usr/sbin/sendmail -f alerts@host2.thetimesoftimes.com -t
2012-06-14 21:57:14 1SfEIE-0000wK-Kj <= alerts@host2.thetimesoftimes.com U=root P=local S=678 T="lfd on host2.thetimesoftimes.com: WHM/cPanel root access alert from 181.21.53.1 (US/United States/" for alertme@thetimesoftimes.com
2012-06-14 21:57:14 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1SfEIE-0000wK-Kj
2012-06-14 21:57:23 1SfEIE-0000wK-Kj == alertme@thetimesoftimes.com R=lookuphost T=remote_smtp defer (-44): SMTP error from remote mail server after RCPT TO:<alertme@thetimesoftimes.com>: host direct-connect.thetimesoftimes.com [76.23.22.22]: 451 Temporary local problem - please try later
2012-06-14 21:57:23 1SfEIE-0000wK-Kj ** alertme@thetimesoftimes.com: retry timeout exceeded
2012-06-14 21:57:23 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1SfEIE-0000wK-Kj
2012-06-14 21:57:23 1SfEIN-0000wQ-Em <= <> R=1SfEIE-0000wK-Kj U=mailnull P=local S=1811 T="Mail delivery failed: returning message to sender" for alerts@host2.thetimesoftimes.com

不確定這意味著什麼或有什麼問題。這是一個 Exim 配置錯誤嗎?

在 /etc/localdomains 下,我有 hosts2.domain,在 /etc/remotedomains 下,我列出了主域。我現在需要配置 Exim 嗎?

此行告訴您這是一個臨時錯誤,exim 應該定期重試發送至少 5 天左右。這是預設設置。

2012-06-14 21:57:23 1SfEIE-0000wK-Kj == alertme@thetimesoftimes.com R=lookuphost T=remote_smtp defer (-44): SMTP error from remote mail server after RCPT TO:<alertme@thetimesoftimes.com>: host direct-connect.thetimesoftimes.com [76.23.22.22]: 451 Temporary local problem - please try later

但在您的情況下,exim 立即無法傳遞:

2012-06-14 21:57:23 1SfEIE-0000wK-Kj ** alertme@thetimesoftimes.com: retry timeout exceeded

我不知道為什麼遠端伺服器會出現這個臨時錯誤,如果您控制伺服器檢查它的日誌以找出答案。

我也不知道為什麼 exim 在您的情況下會超時重試並立即向您發送永久失敗。但我懷疑你可能已經(錯誤)配置它來做到這一點?預設的 exim 配置不會那樣做。

有時,如果“沒有達到任何主機的重試時間”,為了在 debian 系統上立即強制重試,我會刪除文件 /var/spool/exim4/db/retry 然後開始另一個隊列執行。你可以試試,但我不確定它是否對你的特定問題有效。這只是一個值得一試的快速修復(它非常無害),但對於永久修復,請仔細檢查您的配置,以查看 exim 在臨時故障方面的行為。

你開始一個隊列執行:

exim -q -v

有關更多 exim 命令,請參閱此備忘單:http ://bradthemad.org/tech/notes/exim_cheatsheet.php

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