ALLOW FILETYPES in MailScanner.conf

Julian Field mailscanner at ecs.soton.ac.uk
Thu Aug 10 22:28:44 IST 2006


-----BEGIN PGP SIGNED MESSAGE-----
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 somedomain.com  \.mp3$
>>>
>>> %etc-dir%/allow.filetypes.rules
>>>   From:   joe.blow at somedomain.com  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
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

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

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Get your PCs and servers from Transtec.de, very well built and reliable!

-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.7.0
Charset: ISO-8859-1

wj8DBQFE26UPEfZZRxQVtlQRAiQ3AJ4v+knH8VZid77zJQwuThB5iEf6qQCfctji
9WcYU7XwnKYkyrCjj9Skaak=
=mdOc
-----END PGP SIGNATURE-----

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