ALLOW FILETYPES in MailScanner.conf

Julian Field mailscanner at
Thu Aug 10 20:55:46 IST 2006

Hash: SHA1

Kevin Miller wrote:
> I updated my MS to take advantage of the new Allow Filenames & Allow
> Filetypes functions and notice that the comments documenting filetypes
> seems to be a copy and paste of Allow Filenames with minor editing.  I'm
> a bit confused by one thing; in the example it shows this for filetypes:
>   # Allow Filetypes = \.txt$ \.pdf$
>   # Deny  Filetypes = \.com$ \.exe$ \.cpl$ \.pif$
> Shouldn't that rather be:
>   # Allow Filetypes = text postscript
> and the like?

Yes it should. Well spotted.

> Looking in the filetype.rules.conf I don't see any extensions - just
> things like text, postscript, MPEG, etc.
> Am I out to lunch?

Not at all. For a beer, maybe, for not to lunch.

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

> S'later...
> ...Kevin

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