fast/slow queues for outbound email

Jeff A. Earickson jaearick at colby.edu
Fri Mar 10 03:14:05 GMT 2006


On Thu, 9 Mar 2006, uNiX pSyChO wrote:

> Jeff A. Earickson wrote:
>> 
>> I got a ruleset written to split my outbound queues into fast
>> (local domain) and slow (everything else), changed my init.d
>> sendmail script to do:
>> 
>> /usr/lib/sendmail -qp -OQueueDirectory=/var/spool/mqueue/fastq
>> /usr/lib/sendmail -qp -OQueueDirectory=/var/spool/mqueue/slowq
>> 
>> for processing of my two queues, everything is working great.
>> Why didn't I split my queues earlier?  Doh!
>
> urr?
>
> there looks to be something missing.  it looks like you just created 2 
> identical queues.  from what i remember you can configure each queue to have 
> different properties, if indeed you wanted a "slow" and "fast" queue.
>

Ahhh, but the magic comes in the MS ruleset.  Julian's code
is so cool and flexible for me to do this.  I set this in
my Mailscanner.conf:

Outgoing Queue Dir = %localrules-dir%/outqueue.rules

and the ruleset looks like:

To:     @colby.edu      /var/spool/mqueue/fastq
To:     @basalt.colby.edu       /var/spool/mqueue/fastq
From:   @facebook.com   /var/spool/mqueue/slowq
FromOrTo:       default /var/spool/mqueue/slowq

Stuff to be locally delivered at my domain goes in the fast queue,
other stuff goes in the slowq.  Ok, so I hate facebook and they
go in the slow queue.

The only puzzlement is unqualified addresses, eg "joeblow" instead 
of "joeblow at colby.edu".  They end up in the slow queue.  Any Regex
dudes out there who could suggest a To: rule for this?

Jeff Earickson
Colby College


More information about the MailScanner mailing list