<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.10.0">
</HEAD>
<BODY>
Thanks for the answer.&nbsp; Sorry for the long delay in the thanks departments.<BR>
<BR>
One more question here,<BR>
<BR>
Can I put more than one rules file in the Mailscanner.conf.&nbsp; Currently I am pointing to a ruleset already.<BR>
<BR>
Currently mine looks like this<BR>
<BR>
Filename Rules = %etc-dir%/filename.rules.conf<BR>
<BR>
so would it look like this?<BR>
<BR>
<FONT COLOR="#000000">Filename Rules = %rules-dir%/filename.rules</FONT> %etc-dir%/filename.rules.conf<BR>
<BR>
Or would I need to combine the .rules file into the .conf file<BR>
<BR>
Thanks for the help.<BR>
<BR>
James<BR>
<BR>
<BR>
<BR>
On Fri, 2006-08-04 at 17:50 -0400, Stephen Swaney wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">&gt; -----Original Message-----</FONT>
<FONT COLOR="#000000">&gt; From: <A HREF="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</A> [mailto:mailscanner-</FONT>
<FONT COLOR="#000000">&gt; <A HREF="mailto:bounces@lists.mailscanner.info">bounces@lists.mailscanner.info</A>] On Behalf Of Golden, James</FONT>
<FONT COLOR="#000000">&gt; Sent: Friday, August 04, 2006 5:10 PM</FONT>
<FONT COLOR="#000000">&gt; To: MailScanner discussion</FONT>
<FONT COLOR="#000000">&gt; Subject: Re: Retreiving attachments</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; The attachments seem to be .doc or .xls or others and the client always</FONT>
<FONT COLOR="#000000">&gt; seems to be Outlook.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; On Fri, 2006-08-04 at 16:38 -0400, Golden, James wrote:</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt;         Hello,</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt;         I've have been wasting my whole day trying to figure out how to do</FONT>
<FONT COLOR="#000000">&gt; this.  Can anyone could help besides telling me to install Mailwatch</FONT>
<FONT COLOR="#000000">&gt; (because it's not an option right now).</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt;         I have messages that are being snagged by MailScanner because the</FONT>
<FONT COLOR="#000000">&gt; attachment is too large.  When I go to the directory the attachment is in</FONT>
<FONT COLOR="#000000">&gt; binary in the message.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt;         I tried using a sendmail -t &lt; message, but of course it gets snagged</FONT>
<FONT COLOR="#000000">&gt; again by MS.  Is there an option I'm missing to store the attachments</FONT>
<FONT COLOR="#000000">&gt; separately from the message, is there a way to send this on without it</FONT>
<FONT COLOR="#000000">&gt; being scanned?  Is there a way to get the attachment out of the message?</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt;         I need help soon as this is becoming a large issue today (about 6</FONT>
<FONT COLOR="#000000">&gt; end users) and my boss is hearing about it!</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt;         Thanks,</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt;         James</FONT>

<FONT COLOR="#000000">You need to create a rule sets that exempt the localhost from attachment</FONT>
<FONT COLOR="#000000">filename and filetype checking. If you have a Red Hat, CentOS or SuSE</FONT>
<FONT COLOR="#000000">system, the following paths will be correct. They will vary on other systems</FONT>
<FONT COLOR="#000000">but the same principals will work.</FONT>

<FONT COLOR="#000000">First create two files:</FONT>

<FONT COLOR="#000000">/etc/MailScanner/filename.rules.allowall.conf</FONT>
<FONT COLOR="#000000">/etc/MailScanner/filetype.rules.allowall.conf</FONT>

<FONT COLOR="#000000">The contents of each file will be identical:</FONT>

<FONT COLOR="#000000">allow        *.        -        -</FONT>

<FONT COLOR="#000000">The spaces MUST be Tabs so the contents of both files is really:</FONT>

<FONT COLOR="#000000">allow&lt;Tab&gt;*.&lt;Tab&gt;-&gt;Tab&gt;-</FONT>

<FONT COLOR="#000000">Then create the file /etc/MailScanner/rules/filename.rules. The contents of</FONT>
<FONT COLOR="#000000">this file should be:</FONT>

<FONT COLOR="#000000"># Allow all filenames from localhost</FONT>
<FONT COLOR="#000000">From: 127.0.0.0  /etc/MailScanner/filename.rules.allowall.conf  </FONT>
<FONT COLOR="#000000"># Default entry</FONT>
<FONT COLOR="#000000">FromOrTo:       default         /etc/MailScanner/filename.rules.conf</FONT>

<FONT COLOR="#000000">Then create the file /etc/MailScanner/rules/filetype.rules. The contents of</FONT>
<FONT COLOR="#000000">this file should be:</FONT>

<FONT COLOR="#000000"># Allow all filetypes from localhost</FONT>
<FONT COLOR="#000000">From: 127.0.0.0  /etc/MailScanner/filetype.rules.allowall.conf</FONT>
<FONT COLOR="#000000"># Default entry</FONT>
<FONT COLOR="#000000">FromOrTo:       default         /etc/MailScanner/filetype.rules.conf</FONT>

<FONT COLOR="#000000">Then edit /etc/MailScanner.conf to call the new rulesets. Change the setting</FONT>
<FONT COLOR="#000000">for Filename Rules to be:</FONT>

<FONT COLOR="#000000">Filename Rules = %rules-dir%/filename.rules</FONT>

<FONT COLOR="#000000">And change the setting for Filetype Rules to be:</FONT>

<FONT COLOR="#000000">Filetype Rules = %rules-dir%/filetype.rules</FONT>

<FONT COLOR="#000000">Then reload MailScanner. </FONT>

<FONT COLOR="#000000">You should now be able to release the files using the `sendmail -t &lt;</FONT>
<FONT COLOR="#000000">message` command without MailScanner re-quarantining the files.</FONT>

<FONT COLOR="#000000">Have a nice weekend.</FONT>

<FONT COLOR="#000000">Steve        </FONT>
<FONT COLOR="#000000">Stephen Swaney</FONT>
<FONT COLOR="#000000">Fort Systems Ltd.</FONT>
<FONT COLOR="#000000"><A HREF="mailto:stephen.swaney@fsl.com">stephen.swaney@fsl.com</A></FONT>
<FONT COLOR="#000000"><A HREF="http://www.fsl.com">www.fsl.com</A></FONT>


</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>