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.

change SpamAssasin rule score

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

  1. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    51
    Likes Received:
    1
    Trophy Points:
    8
    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:
    76
    Likes Received:
    6
    Trophy Points:
    8
    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.
     
Loading...

Share This Page