Question arising from FAQ: Do not scan attachments for single domain/address

Dan Harris dan at
Wed Nov 24 15:29:53 GMT 2004


Been looking at the FAQs while setting up a filename/type rule to allow .chm
files in from one of our suppliers who should know better and will remain
nameless......(Vodafone!) ...... Whoops!

Anyhow, in the FAQ / Configuration /  Do not scan attachments for single
domain/address (, the second
example suggests a filetype.rules file containing the following:

# FromOrTo: * yes
# FromOrTo: * no
# A filename can also be used in place of yes or no for
# furthur configuration
FromOrTo: default /etc/MailScanner/filetype.rules.conf
FromOrTo:* /etc/MailScanner/filetype.allow.all

The comments in this file would seem to suggest that you can use a simple
"FromOrTo: * no" syntax to prevent the file filtering rules
from affecting mail from/to the domain. This does not work
however, at least not with V4.35.11 (you get a " Cannot open filename-rules
file no, skipping" in the log). Is this a relic from some older version that
it did work with, and as I figure from the filetype.allow.all example (which
I used to make it work in this instance), it is now this way by design?

Just curious.

Dan Harris.

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