On Tue, 2020-10-20 at 20:38 +0100, Miki wrote: > Thanks for quick reply, but blacklist what? > The problem is I do not know this spammy domains. > I want to give a score when To: field is NOT in anyaddr...@mydomain.com
Not tested, but something like this should work: header __LOCAL_TO_ME To =~ /\@mydomain/i header __LOCAL_CC_ME Cc =~ /\@mydomain/i header __LOCAL_MAILING_LIST1 List-Unsubscribe =~ /[a-z]+/ header __LOCAL_MAILING_LIST2 List-ID =~ /[a-z]+/ meta LOCAL_NOT_TO_ME ( ! ( __LOCAL_TO_ME || __LOCAL_CC_ME || __LOCAL_MAILING_LIST1 || __LOCAL_MAILING_LIST2 )) score LOCAL_NOT_TO_ME ?? You'll want to whitelist authenticated mail from your regular correspondents though so it doesn't hit normal bcc's.