SpamAssassin custom rule - cPanel 68

Rogerio

Well-Known Member
Sep 26, 2016
78
15
8
Sao Paulo, Brazil
cPanel Access Level
Root Administrator
I'm looking desperately for a way to create a GLOBAL rule (default to all domains) to score some domains on SpamAssassin, but using a config file without touch the cPanel native installation.

My 5 cPanel servers are receiving lots of spam from domains like:

something.cf
something.tk
something.online
and so

I want to score +5 points on SpamAssassin to all *.cf, *.tk domains, etc.

My tests with local.cf are not working :(

Please help!
Thank you
 

Rogerio

Well-Known Member
Sep 26, 2016
78
15
8
Sao Paulo, Brazil
cPanel Access Level
Root Administrator
Got it. Thank you.

To help others:

Code:
header __FROM_TLDFROM From =~ /\.(cf|ga|ml|tk|bid|book|click|club|cricket|date|democrat|directory|download|faith|help|host|link|ninja|online|party|press|pro|racing|reviews?|rocks|science|site|social|space|stream|top|uno|webcam|website|work|win|xyz)\>/i
header __FROM_TLDFROMA From:address =~ /\.(cf|ga|ml|tk|bid|book|click|club|cricket|date|democrat|directory|download|faith|help|host|link|ninja|online|party|press|pro|racing|reviews?|rocks|science|site|social|space|stream|top|uno|webcam|website|win|work|xyz)$/i

meta FROM_TLD ( __FROM_TLDFROM + __FROM_TLDFROMA >= 1 )
score FROM_TLD 8
describe FROM_TLD Bad TLD