MailScanner+PostFix ---- try this

Kash, Howard (Civ,ARL/CISD) hmkash at ARL.ARMY.MIL
Thu Sep 4 21:54:20 IST 2003


For me this seemed to cause lots of messages to get stuck in the
incoming deferred queue.  There would be 200 or so messages in the
queue, but Mailscanner would only process 1 or 2 messages in each batch.
Once I removed the patch, it immediately processed all of the queued
messages in batches of 30.


Howard


-----Original Message-----
From: Julian Field [mailto:mailscanner at ECS.SOTON.AC.UK] 
Sent: Thursday, September 04, 2003 6:45 AM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: MailScanner+PostFix ---- try this


Here's a patch to Postfix.pm. I know it's not exactly a neat solution to
the problem, but if it fixes it I will know I have found the problem.

--- Postfix.pm.old      2003-09-01 12:28:21.000000000 +0100
+++ Postfix.pm  2003-09-04 11:49:17.000000000 +0100
@@ -1132,6 +1132,9 @@
        #print STDERR "Files are " . join(', ', @SortedFiles) . "\n";
        while(defined($file = shift @SortedFiles) &&
              $HitLimit1+$HitLimit2+$HitLimit3+$HitLimit4<1) {
+        # Yes I know this is a hack but it will help isolate the
problem
+        next if $ModDate{$file} > time-3;
+
          # must separate next two lines or $1 gets re-tainted by being
part of
          # same expression as $file [mumble mumble grrr mumble mumble]
          #print STDERR "Reading file $file from list\n";

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4704 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20030904/34cb70b6/smime.bin


More information about the MailScanner mailing list