ALLOW FILETYPES in MailScanner.conf

Julian Field mailscanner at
Thu Aug 10 22:28:44 IST 2006

Hash: SHA1

Kevin Miller wrote:
> Julian Field wrote:
>>> What I'm doing is setting up a particular user to be able to send my
>>> users .mp3 files, so I have the following files set up:
>>> %etc-dir%/allow.filenames.rules
>>>   From:   joe.blow at  \.mp3$
>>> %etc-dir%/allow.filetypes.rules
>>>   From:   joe.blow at  MPEG
>>> Is that correct, or do I really need \.mp3$ in both the filename and
>>> filetype rule files?
>> No, you've got it absolutely correct.
> Almost absolutely correct.  Instead of %etc-dir% I meant to say
> %etc-dir%/rules/ but even better is %rules-dir%.
> Seems to be working a treat - nice feature Julian...

Thanks. I originally wrote it for automatic configuration generation 
systems, as it's simpler to control as it's just another ruleset. 
Tinkering with filename/filetype.rules.conf is a whole new chunk of 
code. But the advantage is you can put whitespace in the pattern-matches 
in filename/type.rules.conf. And you can intermingle allow and deny rules.

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