Selectively blocking .zip files with a ruleset
shrek-m at gmx.de
shrek-m at GMX.DE
Wed Mar 3 13:55:36 GMT 2004
Peter Bates wrote:
>I'd like to go to
>
>deny \.zip$
>
>in filename.rules.conf
>
>but I've been informed we have some users that regularly send data only
>in zip-files, and that can't be necessarily convinced to rename them
>(not a brilliant suggestion, I know, but...)
>
>How can I change 'Filename Rules' to be a ruleset, keep most of the
>ones I have already, but build up a list of 'allowed email senders' for
>.zip?
>
>Still running MS 4.25, SA 2.63, on Postfix...
>
>
search the archives
and see /etc/MailScanner/rules/*
eg.
not tested and no guarantee.
please correct me if i am wrong i have no great experiences with rules.
i prefer [tab] as delimiter in all rules
/etc/MailScanner/MailScanner.conf
##Filename Rules = %etc-dir%/filename.rules.conf
Filename Rules = %etc-dir%/filename.rules
/etc/MailScanner/filename.rules
FromOrTo: user1 at sld.tld %etc-dir%/rules/user.conf
FromOrTo: user2 at sld.tld %etc-dir%/rules/user.conf
FromOrTo: default %etc-dir%/filename.rules.conf
/etc/MailScanner/rules/user.conf
allow \.zip$ - -
--------
jump to "filename.rules"
if user[12]@sld.tld" go to "user.conf"
zip is allowed
default go to "filename.rules.conf"
-------
restart / reload mailscanner
# service MailScanner restart
check the logs
# tail -f /var/log/maillog
and test it
--
shrek-m
More information about the MailScanner
mailing list