Whitelisting rule query

Stef Morrell stef at aoc-uk.com
Wed May 27 16:35:04 IST 2009

> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info 
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> Of Julian Field
> On 27/05/2009 10:48, Stef Morrell wrote:
> > So, what I hope to be able to do is add a spam whitelisting 
> rule along 
> > the lines of
> >
> > From: *@mydomain and From:<IP ADDRESS>
> >
> > Does this makes sense and is it achieveable?
> >    
> Yes, and you have even got the syntax right. Just add a "yes" 
> on the end of the line and put it in 
> /etc/MailScanner/rules/spam.whitelist.rules. 

Ah fantastic thanks. For some reason I was under the mistaken impression
one could only do a 

From:Foo and To:Bar Yes

Rather than multiple 'from' conditions.

Is there a maximum number of conditions (not that I can think of an
application for more than maybe 3-4)?

Could you say 

From:Foo or From:Bar

Or is it more appropriate to write two rules?


Stefan Morrell          | Operations Director
Tel: 0845 3452820       | Alpha Omega Computers Ltd
Fax: 0845 3452830       | Incorporating Level 5 Internet
stef at aoc-uk.com         | stef at l5net.net

More information about the MailScanner mailing list