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