Syntax of SA Rule Actions ruleset?

Peter Bonivart bonivart at opencsw.org
Fri Nov 26 13:19:40 GMT 2010


I have trouble understanding the required syntax for defining several
rules in the ruleset.

This is simple, if it's to foo.com and it hits PB_PDF then apply store-nonspam.

To:    *@foo.com PB_PDF=>store-nonspam

But how about if you have several rules that can possibly match, even
if the actions should be same I have trouble defining it. Should I do
like this:

To:     *@foo.com PB_FOO2=>not-deliver,store-nonspam,forward
mail.quarantine at foo.com
To:     *@foo.com PB_FOO3=>not-deliver,store-nonspam,forward
mail.quarantine at foo.com
FromOrTo:       default

Or like this:

To:     *@foo.com PB_FOO2=>not-deliver,store-nonspam,forward
mail.quarantine at foo.com,PB_FOO3=>not-deliver,store-nonspam,forward
mail.quarantine at foo.com
FromOrTo:       default

I have tried a few variations and the last one works but with some
side effects like it also tries to forward to an address
"mail.quarantine at foo.com PB_FOO2=>not-deliver" so obviously it doesn't
like that syntax either.

/peter


More information about the MailScanner mailing list