SV: Filename checking by From and To address
Sam Przyswa
samp at ARIAL-CONCEPT.COM
Fri Nov 12 17:04:37 GMT 2004
[ The following text is in the "iso-8859-15" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
Le ven 12/11/2004 à 17:16, John Berntsen a écrit :
> Yes, you can and it is documented in the wiki i believe, anyhow here is how i do it:
>
> in /etc/MailScanner/rules dir
> create filename.rules and filetype.rules
>
> example:
>
> post:/etc/MailScanner/rules # cat filename.rules
> FromOrTo: john at doe.com <mailto:john at doe.com> %etc-dir%/filename.doe.rules.conf
> FromOrTo: *@test.com %etc-dir%/filename.test.rules.conf
> FromOrTo: default %etc-dir%/filename.rules.conf
>
> post:/etc/MailScanner/rules # cat filetype.rules
> FromOrTo: john at doe.com <mailto:john at doe.com> %etc-dir%/filetype.doe.rules.conf
> FromOrTo: *@test.com %etc-dir%/filetype.test.rules.conf
> FromOrTo: default %etc-dir%/filetype.rules.conf
>
> Then in your /etc/MailScanner directory
> copy filetype.rules.conf to filetype.doe.rules.conf and filetype.test.rules.conf
> and adjust to taste, do the same for filename.rules.conf.
>
> Then in /etc/MailScanner/MailScanner.conf
> edit these lines, the original has been commented out.
>
> #Filename Rules = %etc-dir%/filename.rules.conf
> Filename Rules = %rules-dir%/filename.rules
> #Filetype Rules = %etc-dir%/filetype.rules.conf
> Filetype Rules = %rules-dir%/filetype.rules
>
> This example can also be applied to which domains etc. you want to scan viruses for etc.
>
Thanks a lot !
Sam.
--
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
MailScanner remercie transtec pour son soutien.
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list