Linux

e-mail ratelimit exim

  • February 14, 2013

Server1 發送給 Server2:

Connecting to domain.com [1.1.1.1]:25 ... connected
 SMTP<< 451 Temporary local problem - please try later
 SMTP>> QUIT
LOG: MAIN
 SMTP error from remote mail server after initial connection: host domain.com [1.1.1.1]: 451 Temporary local problem - please try later
LOG: MAIN
 == alerts@domain.com R=dkim_lookuphost T=dkim_remote_smtp defer (0): SMTP error from remote mail server after initial connection: host domain.com [1.1.1.1]: 451 Temporary local problem - please try later
LOG: queue_run MAIN
 End queue run: pid=42746 -qff

伺服器2:

2013-02-13 19:35:07 1U5mn3-0006KF-Ft Completed
2013-02-13 19:38:36 SMTP connection from [1.1.1.1]:10702 (TCP/IP connection count = 1)
2013-02-13 19:38:36 no IP address found for host 1.1.1.1.choopa.net (during SMTP connection from [1.1.1.1]:10702)
2013-02-13 19:38:36 H=(host.domain.com) [1.1.1.1]:10702 F=<> rejected RCPT <alerts@domain.com>: "
2013-02-13 19:38:37 H=(host.domain.com) [1.1.1.1]:10702 F=<> rejected RCPT <alerts@domain.com>: "
2013-02-13 19:38:37 H=(host.domain.com) [1.1.1.1]:10702 F=<> rejected RCPT <alerts@domain.com>: "
2013-02-13 19:38:37 H=(host.domain.com) [1.1.1.1]:10702 F=<> rejected RCPT <alerts@domain.com>: "
2013-02-13 19:38:37 H=(host.domain.com) [1.1.1.1]:10702 Warning: "Detected session with all messages failed"
2013-02-13 19:38:37 H=(host.domain.com) [1.1.1.1]:10702 Warning: "Increment slow_fail_block Ratelimit - (host.domain.com) [1.1.1.1]:10702 because of all messages failed"
2013-02-13 19:38:37 SMTP connection from (host.domain.com) [1.1.1.1]:10702 closed by QUIT
2013-02-13 19:38:37 SMTP connection from [1.1.1.1]:10723 (TCP/IP connection count = 1)
2013-02-13 19:38:38 no IP address found for host 1.1.1.1.choopa.net (during SMTP connection from [1.1.1.1]:10723)
2013-02-13 19:38:38 H=[1.1.1.1]:10723 temporarily rejected connection in "connect" ACL: "Host is ratelimited due to multiple failure only connections (5.8/1h max:5)"
2013-02-13 19:38:38 SMTP connection from [1.1.1.1]:10725 (TCP/IP connection count = 1)
2013-02-13 19:38:38 no IP address found for host 1.1.1.1.choopa.net (during SMTP connection from [1.1.1.1]:10725)
2013-02-13 19:38:38 H=[1.1.1.1]:10725 temporarily rejected connection in "connect" ACL: "Host is ratelimited due to multiple failure only connections (5.8/1h max:5)"
2013-02-13 19:38:39 SMTP connection from [1.1.1.1]:10735 (TCP/IP connection count = 1)
2013-02-13 19:38:39 no IP address found for host 1.1.1.1.choopa.net (during SMTP connection from [1.1.1.1]:10735)
2013-02-13 19:38:39 H=[1.1.1.1]:10735 temporarily rejected connection in "connect" ACL: "Host is ratelimited due to multiple failure only connections (5.8/1h max:5)"
2013-02-13 19:38:40 SMTP connection from [1.1.1.1]:10740 (TCP/IP connection count = 1)
2013-02-13 19:38:40 no IP address found for host 1.1.1.1.choopa.net (during SMTP connection from [1.1.1.1]:10740)
2013-02-13 19:38:40 H=[1.1.1.1]:10740 temporarily rejected connection in "connect" ACL: "Host is ratelimited due to multiple failure only connections (5.8/1h max:5)"
2013-02-13 19:38:40 SMTP connection from [1.1.1.1]:10741 (TCP/IP connection count = 1)

如何刪除速率限制?

刪除您的 ratelimit 數據庫。這只是 exim 使用 ratelimit 狀態資訊維護的本地 db4 記憶體文件的一個花哨的名稱(因為它是一個 db 文件而不是在記憶體中,所以狀態可以在 exim 重新啟動和伺服器重新啟動後繼續存在)。

在基於 rpm 的系統上,它可能位於/var/spool/exim/db/ratelimit*. 我建議你先停止exim,我的意思是完全停止它。在基於 rpm 的系統上,這意味著service exim stop; service exim stop(沒錯,兩次)。然後刪除包含 ratelimit.lockfile 的文件(如果存在)。然後啟動exim備份,它會在需要時再次創建ratelimit記憶體文件。

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