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!

change SpamAssasin rule score

Discussion in 'E-mail Discussion' started by EneTar, Aug 16, 2016.

  1. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    135
    Likes Received:
    9
    Trophy Points:
    18
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hi I need to disable the DEAR_SOMETHING rule score from spamassassin. So i guess what I should do is creating a new myspamrulessomething.cf file in /etc/mail/spamassassin and enter
    Code:
    score DEAR_SOMETHING 0
    However i got confused after reading this Right way to change SpamAssasin rule score and this How to Configure the Apache SpamAssassin Report_Safe Option - cPanel Knowledge Base - cPanel Documentation.
    So how am I supposed to do this correctly?

    I have CENTOS 6.8 x86_64 kvm, WHM 58.0 (build 19) updating currently to build 20.
     
  2. bloatedstoat

    bloatedstoat Well-Known Member

    Joined:
    Jun 14, 2012
    Messages:
    106
    Likes Received:
    9
    Trophy Points:
    18
    Location:
    Victoria, Australia
    cPanel Access Level:
    Root Administrator
    G'day EneTar,

    On our system I created a custom file that survives spamassassin updates.

    vi /etc/mail/spamassassin/custom.cf

    Add your custom rules then test the rules are working with a test message (including all headers in the test email)
    /usr/local/cpanel/3rdparty/bin/spamassassin --lint -D < spam-test-message.txt

    If all is well restart spamd
    /scripts/restartsrv_spamd

    Hope this helps.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,793
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice