Scanning Order

John Rudd jrudd at UCSC.EDU
Thu Oct 14 09:19:28 IST 2004

>> > Is there a way to have the Virus and Content scanning happen before
>> > the Spam scanning?

There IS a way to do it (before Julian implements it within the
mailscanner system itself), but it's not real pretty.

Have 2 mailscanner instances (I'm not sure if you can use the multiple
queue system built in to mailscanner or not, but you can do it with 2
mailscanner installations):

a) sendmail (or whatever your MTA is) deposits into
/var/spool/mqueue.in1 for the first mailscanner

b) the first mailscanner does virus and content checks but not spam
checks and then deposits messages into /var/spool/mqueue.in2 for the
2nd mailscanner

c) the 2nd mailscanner does spam checks only, and then puts the
messages into /var/spool/mqueue

d) as usual, the sendmail running as a queue processor handles messages
that are in /var/spool/mqueue

I'm not sure if it would actually reduce load or not, though.

OR, you could do virus checks via the sendmail milter, if you're using
sendmail for your MTA.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

More information about the MailScanner mailing list