MailScanner+PostFix ---- try this
Kash, Howard (Civ,ARL/CISD)
hmkash at ARL.ARMY.MIL
Wed Sep 10 19:02:56 IST 2003
Here's the explanation of the future times from Postfix's qmgr_active.c
file:
/* qmgr_active_done() deals with a message after delivery
/* has been tried for all in-core recipients. If the message
/* was bounced, a bounce message is sent to the sender, or
/* to the Errors-To: address if one was specified.
/* If there are more on-file recipients, a new batch of
/* in-core recipients is read from the queue file. Otherwise,
/* if a delivery agent marked the queue file as corrupt,
/* the queue file is moved to the "corrupt" queue (surprise);
/* if at least one delivery failed, the message is moved
/* to the deferred queue. The time stamps of a deferred queue
/* file are set to the nearest wakeup time of its recipient
/* sites (if delivery failed due to a problem with a next-hop
/* host), are set into the future by the amount of time the
/* message was queued (per-message exponential backoff), or are set
/* into the future by a minimal backoff time, whichever is more.
/* The minimal_backoff_time parameter specifies the minimal
/* amount of time between delivery attempts; maximal_backoff_time
/* specifies an upper limit.
The default minimal_backoff_time is 1000s (16m 40s).
Howard
-----Original Message-----
From: Kash, Howard (Civ,ARL/CISD)
Sent: Monday, September 08, 2003 12:26 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: MailScanner+PostFix ---- try this
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