SV: Filename checking by From and To address

John Berntsen john at OMEGADATA.NO
Fri Nov 12 16:16:55 GMT 2004


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

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.
 
Med vennlig hilsen / Regards
John Berntsen
 
Omegadata AS
Leangbukta 31
1392 Vettre
 
Mobil    99 43 07 79
Telefon  66 76 61 00
Faks     66 76 61 01
 

________________________________

Fra: MailScanner mailing list på vegne av Sam Przyswa
Sendt: fr 12.11.2004 16:37
Til: MAILSCANNER at JISCMAIL.AC.UK
Emne: Filename checking by From and To address



Hi,

I have to accept *.exe attachment files only from some mail addresses or
domains and I don't find anything about this feature, is it possible to
that ?

Thanks in advance.

Sam Przyswa.

--

Sam Przyswa - Chef de projet
Arial Concept - Intégrateur Internet
36, rue de Turin - 75008 - Paris - France
Tel: 01 40 54 86 04 - Fax: 01 40 54 83 01
Web: http://www.arial-concept.com - Email: Info at arial-concept.com


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



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