<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.18106"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial></FONT> </DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mailscanner-bounces@lists.mailscanner.info
[mailto:mailscanner-bounces@lists.mailscanner.info] <B>On Behalf Of </B>Jerry
Benton<BR><B>Sent:</B> Tuesday, May 07, 2013 5:59 PM<BR><B>To:</B> MailScanner
discussion<BR><B>Subject:</B> Multi Depth Rules<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>I am creating the structure for "Scan Messages" and am wondering if
anyone has tested this. I am using the MailScanner file name rules structure as
a basis, which looks like this:
<DIV><BR></DIV>
<DIV>---</DIV>
<DIV><B>Filename Rules = %etc-dir%/frules/filename.rules:</B><BR></DIV>
<DIV>FromOrTo: <SPAN style="WHITE-SPACE: pre">domain</SPAN>.com<SPAN
style="WHITE-SPACE: pre">
</SPAN>/etc/MailScanner/frules/domain.com.fn.conf <BR clear=all>
<DIV><BR></DIV>
<DIV>When you look at the contents domain.com.fn.conf, it contains the rules for
that domain. This setup does work.</DIV>
<DIV>---</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>So, what I am looking to do now is the same thing for "Scan
Messages". </DIV>
<DIV><BR></DIV>
<DIV>---</DIV>
<DIV><B>Scan Messages = %rules-dir%/scan.messages.rules</B></DIV>
<DIV>FromOrTo: <SPAN style="WHITE-SPACE: pre"> domain</SPAN>.com<SPAN
style="WHITE-SPACE: pre">
</SPAN> /etc/MailScanner/scan/domain.com.scan.conf <BR></DIV>
<DIV><BR></DIV>
<DIV><B>domain.com.scan.conf</B><BR></DIV>
<DIV>
<DIV>From: <SPAN style="WHITE-SPACE: pre">pain.customer</SPAN>.com
no</DIV>
<DIV>FromOrTo:<SPAN style="WHITE-SPACE: pre"> </SPAN>default yes</DIV>
<DIV>---</DIV><FONT color=#0000ff size=2 face=Arial></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=155145414-08052013></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2 face=Arial>It's
been a while since I poked about inside mailscanner but IIRC there are two
things about rules that must be followed:</FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013> <FONT color=#0000ff
size=2 face=Arial>1. Must end in .rules</FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013> <FONT color=#0000ff
size=2 face=Arial>2. Must be in the defined %rules-dir%</FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2 face=Arial>Now
this might not seem incorrect because the filename/type rules point to .conf
files in the etc directory but it is as they are the action same as yes/no. If I
am recalling this correctly the above should be</FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2 face=Arial>Scan
Messages = %rules-dir%/scan.messages.rules</FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2
face=Arial>FromOrTo: domain.com
%rules-dir%/domain.com.scan.rules</FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2
face=Arial>domain.com.scan.rules</FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2 face=Arial>From:
pain.customer.com no</FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2
face=Arial>FromOrTo: default yes</FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2 face=Arial>I have
not the time to test it or take a refresher look at the code but I am pretty
sure it would have to be this way to follow the parsing rules for MailScanner to
understand it was looking at a rule file </FONT></SPAN></DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=155145414-08052013><FONT color=#0000ff size=2
face=Arial>Rick</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Has anyone tested this? It is basically a structure 2 levels deep instead
of 1. </DIV>
<DIV><BR></DIV>
<DIV><BR></DIV></DIV>-- <BR>
<DIV dir=ltr>
<DIV>
<DIV><BR>--<BR></DIV>Jerry Benton<BR></DIV>Mailborder Systems<BR><A
href="http://www.mailborder.com"
target=_blank>www.mailborder.com</A><BR></DIV></DIV></DIV></BODY></HTML>