Question about rule files

Julian Field MailScanner at
Tue Nov 11 16:20:18 GMT 2008

On 11/11/08 15:59, Wim Bakker wrote:
> Hello
> Is it possible to include rule files in rule files.
No, sorry.
But you can put a filename in a rule instead of an address to match, 
which will make it apply the rule to every address/domain/whatever 
listed in the file, one per line. Comments start with # and last to the 
end of the line.

That may well be enough for your needs.

> Eg.
> High Scoring Spam Actions = 
> /opt/MailScanner/etc/rules/highspamaction.rules
> and the highspamaction.rules has include files
> for different domains
> like :
> include /opt/MailScanner/etc/rules/domainset1.rules
> include /opt/MailScanner/etc/rules/domainset2.rules
> etc.
> the include files than contain the actual rules
> Thanks
> Wim Bakker


Julian Field MEng CITP CEng
Buy the MailScanner book at

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

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key:

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list