RBL Check timed out

Julian Field mailscanner at ecs.soton.ac.uk
Tue Mar 25 16:29:46 GMT 2003


I fixed this for SA in 4.11. Forgot to fix it for RBLs :(

Please can you try this patch to SA.pm and let me know how you get on.

--- RBLs.pm.old Fri Mar 14 11:30:42 2003
+++ RBLs.pm     Tue Mar 25 16:34:16 2003
@@ -44,6 +44,7 @@
  $VERSION = substr q$Revision: 1.18.2.2 $, 10;

  my %spamlistfailures; # Number of consecutive failures for both lists
+my %deadspamlists;    # All the dead spam lists

  #
  # Constructor.
@@ -207,11 +208,17 @@
    if ($pid>0) {
      # Increment the "Failures" counter for this RBL
      $spamlistfailures{"$Checked"}++;
-    if ($maxfailures>0) {
+    if (!$deadspamlists{"$Checked"} && $maxfailures>0) {
        MailScanner::Log::WarnLog("RBL Check $Checked timed out and was " .
                     "killed, consecutive failure " .
                     $spamlistfailures{"$Checked"} . " of " .
                     $maxfailures);
+      # Kill this list as it has exceeded maxfailures
+      if ($spamlistfailures{"$Checked"}>=$maxfailures) {
+        MailScanner::Log::WarnLog("RBL Check %s temporarily disabled",
+                                  $Checked);
+        $deadspamlists{"$Checked"} = 1;
+      }
      } else {
        MailScanner::Log::WarnLog("RBL Check $Checked timed out and was
killed");
      }


At 15:45 25/03/2003, you wrote:
>Hello.
>
>Yesterday I received a bunch of "RBL Check  timed out and was killed"
>messages in mail.log.  Here is a sample output from my logs:
>
>$ grep "MailScanner\[6171\]: RBL" /var/log/mail.log
>Mar 24 11:47:53 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 1 of 7
>Mar 24 11:54:50 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 2 of 7
>Mar 24 11:55:01 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 3 of 7
>Mar 24 11:59:44 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 4 of 7
>Mar 24 12:01:06 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 5 of 7
>Mar 24 12:03:40 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 6 of 7
>Mar 24 12:06:53 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 7 of 7
>Mar 24 12:10:07 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 8 of 7
>Mar 24 12:11:20 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 9 of 7
>Mar 24 12:12:07 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 10 of 7
>Mar 24 12:16:45 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 11 of 7
>Mar 24 12:20:09 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 12 of 7
>Mar 24 12:45:20 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 13 of 7
>Mar 24 12:46:26 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 14 of 7
>Mar 24 12:49:00 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 15 of 7
>Mar 24 12:50:14 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 16 of 7
>Mar 24 13:56:02 dimstar MailScanner[6171]: RBL Check  timed out and was
>killed, consecutive failure 17 of 7
>
>In my MailScanner.conf file, I have
>
>Spam List =
>
>I'm pretty sure that I tried commenting out the Spam List entry too, and
>I've seen similar messages.  I am trying to prevent MailScanner from doing
>any RBL checks (I only want SpamAssassin to do this).  I don't understand
>why it would be trying to do RBL checks, and why it keeps on failing even
>after 7 consecutive failures.  I am running MailScanner 4.12-2.  Is this a
>bug in the code or do I have something configured wrong?
>
>Jason

--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support



More information about the MailScanner mailing list