Split queues
Jeff A. Earickson
jaearick at colby.edu
Mon Jan 29 21:59:12 UTC 2007
On Mon, 29 Jan 2007, Julian Field wrote:
>>
>> Julian,
>>
>> I'm installing and looking at 4.58.7 right now, but Whoa.... I confess that
>> I didn't pay as much attention to this thread as I should have.
>> I run split outbound queues, ie:
>>
>> Outgoing Queue Dir = %localrules-dir%/outqueue.rules
>>
>> where the ruleset looks like:
>>
>> To: @colby.edu /var/spool/mqueue/fastq
>> FromOrTo: default /var/spool/mqueue/slowq
>>
>> I want to keep the local stuff dis-entangled from outbound stuff that may
>> not be resolving, to speed up local delivery. I also run a cronjob every
>> 5 minutes that moves the non-deliverables to a delayq to get it out of
>> the way:
>>
>> #!/usr/bin/ksh
>> #
>> # Move messages with more than 3 retransmission attempts to slow queue
>> #
>> QTOOL=/usr/local/adm/qtool.pl
>> FASTQUEUE=/var/spool/mqueue/fastq
>> SLOWQUEUE=/var/spool/mqueue/slowq
>> DELAYQUEUE=/var/spool/mqueue/delayq
>> #
>> #---anything in fast or slow queues with more than 3 attempts, go to delayq
>> #---stuff will sit in the delayq until either delivered or returned
>> #---the delay queue has more generous sendmail timeout settings
>> $QTOOL -e '$msg{num_delivery_attempts} > 1' $DELAYQUEUE $FASTQUEUE
>> $QTOOL -e '$msg{num_delivery_attempts} > 3' $DELAYQUEUE $SLOWQUEUE
>>
>> So the idea of kicking my slowq or delayq sounds like it will defeat my
>> plan.
>>
>> Is there a list archive for the beta list someplace that I can go look
>> at?
>>
>> Jeff Earickson
>> Colby College
> Unfortunately it sounds like you want the opposite of what everyone else
> appears to want. Take a look for the sub called KickMessage in the pm
> corresponding to your MTA and you'll find the code. Pretty easy to
> reverse engineer and change to what you want.
Staring at it, I realize that it kicks my fastq and slowq, but it has
no clue about delayq since the qtool.pl script pulls laggards out of
the slowq and makes them disappear into the delayq. So you have a
winner as far as I'm concerned -- KickMessage keeps my fast and slow
queues lean and mean. Wheeee!
Jeff Earickson
Colby College
More information about the MailScanner-Beta
mailing list