<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Martin,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I have many rules files with default rules at the beginning of the files and they work just fine. Also I couldn’t find
 any warning about this in the /etc/MailScanner/rules/README file that explains how to use rules so I have to assume there is no such requirement.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Denis<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:11.0pt;font-family:"Calibri",sans-serif">De :</span></b><span lang="FR" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> MailScanner [mailto:mailscanner-bounces@lists.mailscanner.info]
<b>De la part de</b> Martin Hepworth<br>
<b>Envoyé :</b> 24 août 2015 08:38<br>
<b>À :</b> MailScanner Discussion <mailscanner@lists.mailscanner.info><br>
<b>Objet :</b> Re: Whitelist not working<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">Denis<o:p></o:p></p>
</div>
<p class="MsoNormal">You sure - Jules always used to say the rules files are treated liek firewall rules, first line to hit as you work from top to bottom will activate.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Unless, of course it changed while I've not bee following too much.<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">-- <br>
Martin Hepworth, CISSP<br>
Oxford, UK<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 24 August 2015 at 13:28, Denis Beauchemin <<a href="mailto:Denis.Beauchemin@usherbrooke.ca" target="_blank">Denis.Beauchemin@usherbrooke.ca</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">This is not true: no need to put the default line last.<br>
<br>
Denis<br>
<br>
-----Message d'origine-----<br>
De : MailScanner [mailto:<a href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</a>] De la part de Mogens Melander<br>
Envoyé : 21 août 2015 23:33<br>
À : MailScanner Discussion <<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a>><br>
Objet : Re: Whitelist not working<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
The default should be last in the file.<br>
<br>
From: *@*.<a href="http://mydomain.com" target="_blank">mydomain.com</a>          yes<br>
FromOrTo:       default         no<br>
<br>
On Fri, August 21, 2015 21:56, Tony Clark wrote:<br>
><br>
> I cannot get any whitelist entries to work in MailScanner.<br>
><br>
> I am updating the whitelist in MailWatch, but I am not seeing it get<br>
> updated in spam.whitelist.rules<br>
><br>
> I've tried manually updating spam.whitelist.rules, but every time I<br>
> send a test SPAM, it gets blocked as spam.<br>
><br>
> Here are my file contents:<br>
><br>
> ---<br>
> spam.whitelist.rules:<br>
><br>
> # If you are basing a blacklist on this then you can refer to # a null<br>
> (empty) sender address with "/^$/" as the address to match.<br>
> #<br>
> # This is where you can build a Spam WhiteList # Addresses matching in<br>
> here, with the value # "yes" will never be marked as spam.<br>
> #From:          152.78.         yes<br>
> #From:          130.246.        yes<br>
> #From:          host:<a href="http://soton.ac.uk" target="_blank">soton.ac.uk</a> yes # Note this is slower than using the<br>
> IP<br>
><br>
<br>
--<br>
Mogens Melander<br>
<a href="tel:%2B66%208701%2033224">+66 8701 33224</a><br>
<br>
<br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
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/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/listinfo/mailscanner</a><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/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/listinfo/mailscanner</a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>