Bypass spam scan based on header

Julian Field mailscanner at
Mon Aug 7 20:12:15 IST 2006

Hash: SHA1

A simple Custom Function would do it, but do be sure to remember that 
any header you can add can be easily added by the spammers as well! 
Don't trust _anything_ in the headers :-(

Jim Flowers wrote:
> I pre-process email with another program before forwarding messages to
> MailScanner.  This program adds a header on the fly when a message has been
> whitelisted.
> I want to configure MailScanner to bypass spam-scanning messages that contain
> this header to save the overhead.  Virus-scanning is still required.  Is there
> a way to do this other than using a Custom Function or by using a sendmail hack?
> If not, I'll probably hack the pre-processor to add/delete the whitelisted
> addresses into the MySQL database for to handle.
> But I thought: if anyone has already solved this problem, I should ask.  
> Anyone?
> --
> Jim Flowers <jflowers at>

- -- 
Julian Field
Buy the MailScanner book at

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

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Get your PCs and servers from, very well built and reliable!

Version: PGP SDK 3.7.0
Charset: ISO-8859-1


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

More information about the MailScanner mailing list