On 20 Oct 2020, at 16:06, Miki wrote:

Are you telling me it's that simple. I want to score the emails without my
domain in To field. I can do this both ways
1. Score when To: contain main domain negatively
header                  HDR              To=~ /\@mydomain\.com/i
describe                HDR              To mydomain
score                   HDR              -2

2. Score when To: does not contain my domain positively. But will it work?
header                  HDR              To!~ /\@mydomain\.com/i
describe                HDR              To mydomain
score                   HDR              2

It's that simple, but put a space between the header name and the matching operator. Just as documented, run: perldoc Mail::SpamAssassin::Conf

And as previously noted by others, this will match a majority of non-spam mailing list mail.

--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to