ruleset processing - matching order {Scanned}

Eric Dantan Rzewnicki rzewnickie at RFA.ORG
Fri Jul 2 19:56:40 IST 2004


On Thu, Jul 01, 2004 at 02:18:33PM -0700, Scott Silva wrote:
> | Hi,
> | so far, I've used rulesets very sparingly and now I have a doubt I
> couldn't
> | resolve just by looking at the FAQ (or the MAQ, for that matter).
> | It is clear that the 'default' action is different from the rest in that > is
> | always used as a last resort, but... what happens if you have more than > one
> | rule that match a given message? is the first one applied? or the last > one?
> | Example:
> | High Scoring Spam Actions = %rules-dir%/hispam.actions.rules
> | and, in hispam.actions.rules:
> | FromOrTo:   default               delete
> | From:       someone at example.com   deliver forward guy at example.net
> | From:       10.9.8.7              deliver
> I believe the default needs to be last or nothing will ever get past it.
> "FromorTo:     default "    = bam! goodbye message.
> I am pretty sure rules are top to bottom, stopping at first match.

Someone will correct me if I'm wrong, but I think that is incorrect.
default can be anywhere in the list, but will always be used if no other
rule matches. All other rules are top to bottom, stopping at first
match.

-Eric Rz.

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html



More information about the MailScanner mailing list