Exempt certain users from file blocking

Harry Hanson harryh at CET.COM
Sat Aug 7 20:25:08 IST 2004


There's an example in the FAQ-O-Matic, however I'm a bit unsure of the
proper syntax.

>You need a filename.rules.conf file that allows everything, and a
filetype.rules.conf that allows everything.
>So let's make /etc/MailScanner/filename.allow.all.conf and
/etc/MailScanner/filetype.allow.all.conf Make them both
>contain a single rule allow . - - (remember to separate with tabs and not
spaces).

So, the rule should read:

allow   .       -       -

Correct?

>Then set in MailScanner.conf Filename Rules =
/etc/MailScanner/rules/filename.rules Filetype Rules =
>/etc/MailScanner/rules/filetype.rules

So remove/comment out the default:

Filename Rules = %etc-dir%/filename.rules.conf

>From MailScanner.conf?

>Then in /etc/MailScanner/rules/filename.rules we put To:
awkward at customer.com /etc/MailScanner/filename.allow.all.conf
>FromOrTo: default /etc/MailScanner/filename.rules.conf

So filetype.rules should be 1 line?:

To: awkward at customer.com /etc/MailScanner/filename.allow.all.conf FromOrTo:
default /etc/MailScanner/filename.rules.conf

Or 2?:

>To: awkward at customer.com /etc/MailScanner/filetype.allow.all.conf
>FromOrTo: default /etc/MailScanner/filetype.rules.conf
>
>And in /etc/MailScanner/rules/filetype.rules we put To:
awkward at customer.com /etc/MailScanner/filetype.allow.all.conf
>FromOrTo: default /etc/MailScanner/filetype.rules.conf
>
>What happens is this: mail to the awkward customer ends up with the
"allow.all" filename and filetype rules. Everyone
>else ends up with the normal filename.rules.conf and filetype.rules.conf
files.

Also, spam filtering would require separate rules, correct?



> -----Original Message-----
> From: MailScanner mailing list
> [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf Of Peter Bonivart
> Sent: Wednesday, July 07, 2004 2:04 PM
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: Exempt certain users from file blocking
>
> Rob wrote:
> > I have some users who need to receive exe files and such. Since I
> > don't want to open up exe files to everyone, is it possible to have
> > these certain users exempt from File blocking?
>
> Make a copy of your filename.rules.conf and
> filetype.rules.conf files and modify them to allow exe files.
> Then you make two rulesets which points your "special" users
> to the modified files and the default to the normal files.
> Edit MailScanner.conf to point at the rulesets instead of at
> the normal files directly. It's easy with the flexibility of
> rulesets. Read EXAMPLES and README in the rules directory for
> more help.
>
> --
> /Peter Bonivart
>
> --Unix lovers do it in the Sun
>
> Sun Fire V210, Solaris 9, Sendmail 8.12.10, MailScanner
> 4.31.6, SpamAssassin 2.63 + DCC 1.2.50, ClamAV 0.73 + GMP
> 4.1.2, Vispan 1.4
>
> -------------------------- MailScanner list ----------------------
> To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
> Before posting, please see the Most Asked Questions at
> http://www.mailscanner.biz/maq/     and the archives at
> http://www.jiscmail.ac.uk/lists/mailscanner.html
>
>


---
[This E-mail scanned for viruses]

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list