Whitelist not working

Denis Beauchemin Denis.Beauchemin at usherbrooke.ca
Mon Aug 24 14:51:44 UTC 2015


Could it be a first match rule EXCEPT for the default clause that will only match if no other rule match?

Denis

-----Message d'origine-----
De : MailScanner [mailto:mailscanner-bounces at lists.mailscanner.info] De la part de Mogens Melander
Envoyé : 24 août 2015 10:42
À : mailscanner at lists.mailscanner.info
Objet : RE: Whitelist not working

If that's the case, it makes no sense to me.

I believe this is a first match fires rule, which makes position important, and explains why yours not work.

On Mon, August 24, 2015 14:57, Denis Beauchemin wrote:
> Martin,
>
> 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.
>
> Denis
>
> De : MailScanner [mailto:mailscanner-bounces at lists.mailscanner.info] 
> De la part de Martin Hepworth Envoyé : 24 août 2015 08:38 À : 
> MailScanner Discussion <mailscanner at lists.mailscanner.info>
> Objet : Re: Whitelist not working
>
> Denis
> 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.
> Unless, of course it changed while I've not bee following too much.
>
>
> --
> Martin Hepworth, CISSP
> Oxford, UK
>
> On 24 August 2015 at 13:28, Denis Beauchemin 
> <Denis.Beauchemin at usherbrooke.ca<mailto:Denis.Beauchemin at usherbrooke.c
> a>>
> wrote:
> This is not true: no need to put the default line last.
>
> Denis
>
> -----Message d'origine-----
> De : MailScanner
> [mailto:mailscanner-bounces at lists.mailscanner.info<mailto:mailscanner-
> bounces at lists.mailscanner.info>]
> De la part de Mogens Melander
> Envoyé : 21 août 2015 23:33
> À : MailScanner Discussion
> <mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscann
> er.info>>
> Objet : Re: Whitelist not working
>
> The default should be last in the file.
>
> From: *@*.mydomain.com<http://mydomain.com>          yes
> FromOrTo:       default         no
>
> On Fri, August 21, 2015 21:56, Tony Clark wrote:
>>
>> I cannot get any whitelist entries to work in MailScanner.
>>
>> I am updating the whitelist in MailWatch, but I am not seeing it get 
>> updated in spam.whitelist.rules
>>
>> I've tried manually updating spam.whitelist.rules, but every time I 
>> send a test SPAM, it gets blocked as spam.
>>
>> Here are my file contents:
>>
>> ---
>> spam.whitelist.rules:
>>
>> # If you are basing a blacklist on this then you can refer to # a 
>> null
>> (empty) sender address with "/^$/" as the address to match.
>> #
>> # This is where you can build a Spam WhiteList # Addresses matching 
>> in here, with the value # "yes" will never be marked as spam.
>> #From:          152.78.         yes
>> #From:          130.246.        yes
>> #From:          host:soton.ac.uk<http://soton.ac.uk> yes # Note this is
>> slower than using the
>> IP
>>
>
> --
> Mogens Melander
> +66 8701 33224<tel:%2B66%208701%2033224>
>
>
> --
> This message has been scanned for viruses and dangerous content by 
> MailScanner, and is believed to be clean.
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanne
> r.info> http://lists.mailscanner.info/listinfo/mailscanner
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanne
> r.info> http://lists.mailscanner.info/listinfo/mailscanner
>
>
> --
> This message has been scanned for viruses and dangerous content by 
> MailScanner, and is believed to be clean.
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/listinfo/mailscanner
>
>


--
Mogens Melander
+66 8701 33224


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/listinfo/mailscanner



More information about the MailScanner mailing list