MailScanner+PostFix ---- try this

Kash, Howard (Civ,ARL/CISD) hmkash at ARL.ARMY.MIL
Mon Sep 8 17:25:33 IST 2003


Still doesn't work with 1.  I added a line to log $ModDate{$file} and
the current time.  It appears that the mod time on the queue files is
around 15 minutes in the future??  This explains why queue files always
show up with the year instead of the time in a long listing (ls -l).
Should I try "time + 15*60 - 3"? :-)


Howard


Sep  8 11:22:03 hostname MailScanner[18672]: Message info: ModDate =
1063035179 Time = 1063034523
Sep  8 11:22:03 hostname MailScanner[18672]: Message info: ModDate =
1063035179 Time = 1063034523
Sep  8 11:22:03 hostname MailScanner[18672]: Message info: ModDate =
1063035180 Time = 1063034523



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


All it made happen was that it wouldn't process a message until it had
sat
in the deferred queue for 3 seconds, it should still process them all
but
with a 3 second latency. Try reducing the 3 to 1 and see if that helps
at all.

At 21:54 04/09/2003, you wrote:

>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";
>

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




More information about the MailScanner mailing list