Rules for filenames / file types
Pravin Rane
pravin.rane at gmail.com
Tue Dec 5 19:08:24 GMT 2006
In MailScanner.conf use following
Filename Rules = %etc-dir%/filename.rules
In %etc-dir%/filename.rules use following
FromOrTo: <tab>*@domain1.tld <tab>
%rules-dir%/domain1.tld.filename.rules.conf
FromOrTo: <tab>*@domain2.tld <tab>
%rules-dir%/domain2.tld.filename.rules.conf
FromOrTo: <tab> default <tab> %etc-dir%/filename.rules.conf # Default
filename ruleset
In %rules-dir%/domain1.tld.filename.rules.conf use following
deny <tab> \.gif$ <tab> <tab> Blocked as per policy
# and other extensions you want to deny/allow
In %rules-dir%/domain2.tld.filename.rules.conf use following
allow <tab> \.gif$ <tab> <tab> - <tab> -
# and other extensions you want to deny/allow
On 12/5/06, Ed Wallig <ewallig at aerocontractors.com> wrote:
>
> Hi,
>
> Thanks for the reply - I'm not using SA in my config (separate anti-spam
> system in place) so SARE and DCC are not options (I don't think).
>
> In the filename.rules.conf file, can the "FromOrTo" directives be used?
> This would solve the issue if I could simply put the domains that I want
> to allow gifs from in here. I don't have any problem w/ blocking .gifs
> from the majority of the world, just need a couple of domains to be able
> to send them.
>
> Thanks,
>
> - Ed
>
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Martin
> Hepworth
> Sent: Tuesday, December 05, 2006 11:52 AM
> To: MailScanner discussion
> Subject: Re: Rules for filenames / file types
>
> Ed Wallig wrote:
> > Hi,
> >
> > I am currently blocking .gif files using a deny statement in my
> > filename.rules.conf file to keep the image spam out. This is working
> > great but it is also blocking things that my users don't want blocked.
> > Is there a way to write a rule that allows gif files from certain
> > email domains (and/or addresses) to pass without getting stripped? It
> > needs to also allow outgoing email from my domain to pass w/o getting
> > gif files stripped out (girls in the admin office complaining about
> > their signatures and stationary).
> >
> >
> > Thanks,
> >
> > - Ed
> >
> >
> > //
> >
> >
> >
> >
> I'd look at the SARE rules, URI-RBL's DCC etc for doing this. Works
> great for me, without touching all the heavy FuzzyOCR code at all.
>
>
> --
> Martin Hepworth
> Senior Systems Administrator
> Solid State Logic
> Tel: +44 (0)1865 842300
>
> **********************************************************************
>
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote confirms that this email message has been swept
> for the presence of computer viruses and is believed to be clean.
>
> **********************************************************************
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
--
Regards
Pravin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20061206/0827aca3/attachment.html
More information about the MailScanner
mailing list