Linux

如何擺脫“延遲(-52):尚未達到重試時間”exim4日誌?

  • March 27, 2018

我在exim4的mainlog中有這樣的日誌。我對 exim4 所做的只是學習,所以所有郵件都是假的。現在我嘗試管理經常出現的這些日誌:

2016-12-20 14:28:01 1cJ2UW-0006Yq-3m == root@adammax.tk R=manualrouteadam T=maildir_home defer (-52): Retry time not yet reached
2016-12-20 14:28:01 1cJ8rt-0001Ur-Qj == root@adammax.tk R=manualrouteadam T=maildir_home defer (-52): Retry time not yet reached
2016-12-20 14:28:01 1cJ2YZ-0000W9-W5 == root@adammax.tk R=manualrouteadam T=maildir_home defer (-52): Retry time not yet reached
2016-12-20 14:28:01 1cIsqP-0002Xn-KY == gogo@linwayedm.com.tw R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host
2016-12-20 14:28:01 1cJE0z-00028i-Ve == root@adammax.tk R=manualrouteadam T=maildir_home defer (-52): Retry time not yet reached
2016-12-20 14:28:01 1cIrmt-0002Hz-Td == gogo@linwayedm.com.tw R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host
2016-12-20 14:28:01 1cIsS3-0002Rj-MM == gogo@linwayedm.com.tw R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host
2016-12-20 14:28:01 1cJ2X1-0000R4-EY == root@adammax.tk R=manualrouteadam T=maildir_home defer (-52): Retry time not yet reached
2016-12-20 14:28:01 End queue run: pid=11801

由於我不需要它,如何刪除它?

有時您可能會注意到某些地址會出現延遲錯誤:未達到任何主機的重試時間。

1Ruz3Y-0005TQ-Ek == email@domain.com R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host

因此,您需要了解使用什麼 smtp 伺服器來管理 address.com 的電子郵件。要做到這一點 - 使用主機命令或更高級的 dig,無論你最喜歡什麼。此命令應在您的郵件伺服器上發出:

host domain.com
domain.com has address X.X.X.X
domain.com mail is handled by 50 remote.smtp.server.

首先確保遠端 smtp 伺服器正在接受 25/tcp 上的連接並且執行時沒有任何不可預知的錯誤。

telnet remote.smtp.server 25
Trying x.x.x.x...
Connected to remote.smtp.server.
Escape character is '^]'.
220 remote.smtp.server bla-bla-bla

下一步是整理 exim 重試數據庫:

/usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null

在某些情況下,您可能希望刪除所有重試條目:

rm -rf /var/spool/exim/db/retry
rm -rf /var/spool/exim/db/retry.lockfile

來源:https ://linuxnlenux.wordpress.com/2013/08/11/exim-defer-53-retry-time-not-reached-for-any-host/

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