<div dir="ltr">Kevin,<div><br></div><div style>Thank you, but I think you missed the point. Perhaps I didn&#39;t explain it well enough. I am aware how the rules work. The question is if Allow Match can be altered to First Match because an All Match approach is not as flexible. </div>
<div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 4, 2013 at 11:03 PM, Kevin Miller <span dir="ltr">&lt;<a href="mailto:Kevin_Miller@ci.juneau.ak.us" target="_blank">Kevin_Miller@ci.juneau.ak.us</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">Without seeing your actual rule file (in the MailScanner/rules directory) it’s hard to say what you’re doing, but I’d do this:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">In MailScanner.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">  Allow Webbugs = %rules-dir%/webbugs.rules<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">In MailScanner/rules directory:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">Filename: webbugs.rules<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   FromOrTo:    <a href="mailto:user@domain.com" target="_blank">user@domain.com</a>         yes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   FromOrTo:    *@<a href="http://differentdomain.com" target="_blank">differentdomain.com</a>   yes<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">   FromOrTo:    default                 disarm<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">This will let <a href="mailto:user@domain.com" target="_blank">user@domain.com</a> and all users at <a href="http://differentdomain.com" target="_blank">differentdomain.com</a> send webbugs and disarm all others.  You can also just use From: and/or To: as the first field as appropriate to your environment.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d">See the EXAMPLES (in the rules directory) file for more details…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d"> ...Kevin<br>--<br>Kevin Miller<br>
Network/email Administrator, CBJ MIS Dept.<br>155 South Seward Street<br>Juneau, Alaska 99801<br>Phone: <a href="tel:%28907%29%20586-0242" value="+19075860242" target="_blank">(907) 586-0242</a>, Fax: <a href="tel:%28907%29%20586-4500" value="+19075864500" target="_blank">(907) 586-4500</a><br>
Registered Linux User No: 307357</span><span style="color:#1f497d"> </span><span style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:mailscanner-bounces@lists.mailscanner.info" target="_blank">mailscanner-bounces@lists.mailscanner.info</a> [mailto:<a href="mailto:mailscanner-bounces@lists.mailscanner.info" target="_blank">mailscanner-bounces@lists.mailscanner.info</a>] <b>On Behalf Of </b>Jerry Benton<br>
<b>Sent:</b> Friday, October 04, 2013 12:29 PM<br><b>To:</b> MailScanner discussion<br><b>Subject:</b> First Match vs All Match<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">
Hello,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">So, I found out the hard way after much face-to-keyboard action that &quot;Allow Webbugs&quot; is an &quot;All Match&quot; rule. So if I have this:<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">user@domain  yes<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><a href="http://acme.com" target="_blank">acme.com</a>  disarm<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">If user@domain sends a web bug in an email it will be allowed. Unless of course he sends it to <a href="http://acme.com" target="_blank">acme.com</a> where it will be denied. Well, this presents a problem if you have a valid sender you wish to allow to send web bugs to your domain while blocking all others.<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">So, does anyone know if All Match and First Match is a configurable item for rule sets? I know it is not in the MailScanner.conf, but perhaps a pm file could be modified?<br clear="all">
<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><div><div><p class="MsoNormal"><br>--<u></u><u></u></p></div><p class="MsoNormal">Jerry Benton<u></u><u></u></p>
</div><p class="MsoNormal">Mailborder Systems<br><a href="http://www.mailborder.com" target="_blank">www.mailborder.com</a><u></u><u></u></p></div></div></div></div></div></div></div><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" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
<br></blockquote></div><br><br clear="all"><div><br></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>