Filter for Spam Score less than?

Bhoward

Registered
May 29, 2019
1
0
0
Canada
cPanel Access Level
Reseller Owner
Hello,

I'd like to setup an email filter that reads the spam score from Apaches SpamAssassin, that redirects emails with a score BELOW 3 to another email address.

I setup with the rules of:
Spam Score -> is below (numbers only) -> 3

This in theory looks like it should work no problem, but it doesn't seem to do anything. Even if I change the action from "redirect" to "move to folder" or even "discard", the filter doesn't do anything.

If I change the rule to something else, like "subject contains" or "sender contains" it works as intended. I just can't get the spam score rule to work. Any ideas?

Thanks!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
Something like this should work (this is a really simple version of a rule)

Code:
if
 $h_X-Spam-Bar: contains "+"
 or $h_X-Spam-Bar: contains "++"
 or $h_X-Spam-Bar: contains "+++"
then
 deliver "[email protected]"

Out of curiosity why would you want to redirect mail that is NOT being marked as spam away from its intended recipient?