Non Nested rules quiry

Steen, Glenn Glenn.Steen at AP1.SE
Wed Feb 2 09:12:08 GMT 2005

Might it be the ".list" ending on %rules-dir%/chinaemail.rules.list
that is giving you grief? IIRC rules files need end in
.rule or .rules.

-- Glenn

-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
Behalf Of Howard Robinson
Sent: den 1 februari 2005 16:25
Subject: Non Nested rules quiry

I have 60 staff and students in China that keep having their emails
coming into college marked as spam. They are using about 10 different
I want to allow emails from them to four specific staff members here
without them being checked for spam. 
I though I had it sussed but Mailscanner protests when restarting with a
syntax error in the rules file. 
What I have tried so far is:- 
In MailScanner.conf I have (with other blurb snipped and tabs for
Is Definitely Not Spam = %rules-dir%/spam.whitelist.rules 

In %rules-dir%/spam.whitelist.rules 
# note line wrapped 
To: usera at 

FromOrTo: default no 

In /etc/MailScanner/rules/chinaemail.rules.list 
I have 
From: userz at domain1 yes 
From: usery at domain2 yes 
From: userx at domain1 yes 
FromOrTo: default no 

My idea was that only if it were for usera would mailscanner need to
look at the from address however in the book (p309) it says that rules
can't be nested other than files full address patterns. 
However p304 option 14 looks to me to contradict this. 

Have I got this wrong? 


Howard Robinson
(Senior Technical Development Officer)
Harper Adams University College

E-mail: hrobinson at
Tel.  : +44(0)1952 820280 Via switchboard
      : +44(0)1952 815253 Direct line
Fax.  : +44(0)1952 814783
College Web site

------------------------ 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 (

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list