Split queues

Julian Field MailScanner at ecs.soton.ac.uk
Mon Jan 29 20:44:22 UTC 2007



Jeff A. Earickson wrote:
> On Mon, 29 Jan 2007, Julian Field wrote:
>
>> Date: Mon, 29 Jan 2007 19:25:57 +0000
>> From: Julian Field <MailScanner at ecs.soton.ac.uk>
>> Reply-To: MailScanner Beta-testers 
>> <mailscanner-beta at lists.mailscanner.info>
>> To: MailScanner discussion <mailscanner at lists.mailscanner.info>,
>>     MailScanner beta testers <mailscanner-beta at lists.mailscanner.info>
>> Subject: Re: Split queues
>>
>> Okay, I've changed my mind.
>>
>> I have put in the split queue support for kicking MTA's to tell them 
>> about messages that need delivering in all queues.
>>
>> *Please* test this stuff in:
>>   Sendmail
>>   Exim
>>   Postfix
>>
>> Without sufficient testing, I will withdraw it again.
>>
>> Thanks folks.
>>
>> Julian Field wrote:
>>> The latest beta should work, as far as it goes.
>>> However, messages put in queues other than the default one won't be 
>>> "kicked" at the MTA. They will wait until the MTA next does a round 
>>> of that non-default queue.
>
> 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.

Jules

Jules

-- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk




More information about the MailScanner-Beta mailing list