How to ignore some recipients in a SpamAssassin Rule Actions ruleset

Julian Field MailScanner at ecs.soton.ac.uk
Sat Jan 3 10:53:29 GMT 2009


As the default value for the setting is just blank, all you have to do 
is give blank as the value for the address.

So the line just needs to read
To: user at example.com

That's all there is to it.

Jules.

On 3/1/09 01:14, Mark Sapiro wrote:
> I have searched the list archives and the documentation wiki and
> haven't found an answer.
>
> In MailScanner.conf I have
>
> SpamAssassin Rule Actions = %rules-dir%/spamassassin_rule_actions.rules
>
> In spamassassin_rule_actions.rules, what is the proper way to specify a
> null action for some recipient. I have
>
>
> FromOrTo:  default  SA_RULE_NAME=>action_list
>
> and that works fine. I want to exempt a recipient from these actions. I
> know for example that I could put
>
> To:  user at example.com  ZZZ_BOGUS_RULE=>action
>
> Where ZZZ_BOGUS_RULE is a non-existent rule, but that seems somewhat
> kludgey.
>
> The usual "yes" or "no" don't seem appropriate here as they aren't the
> kind of values that are expected for SpamAssassin Rule Actions.
>
> I found through experiment that
>
> To:   user at example.com    ""
>
> seems to work as does
>
> To:   user at example.com    SA_RULE_NAME=>
>
> and
>
> To:   user at example.com    SA_RULE_NAME
>
> but
>
> To:   user at example.com    ,
>
> doesn't work.
>
> Is there a "correct" or a preferred way to do what I want?
>
>    

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc


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



More information about the MailScanner mailing list