Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SpamAssassin custom rule - cPanel 68

Discussion in 'E-mail Discussion' started by Rogerio, Feb 21, 2018.

Tags:
  1. Rogerio

    Rogerio Member

    Joined:
    Sep 26, 2016
    Messages:
    20
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,245
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    That's the correct method of modifying the SpamAssassin configuration file globally. However, it's possible a custom user preference is overriding the global value. See this thread:

    Setting Server wide Spam Assassin settings

    Thank you.
     
    Rogerio likes this.
  3. Rogerio

    Rogerio Member

    Joined:
    Sep 26, 2016
    Messages:
    20
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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
    
     
Loading...

Share This Page