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.

Customize SpamAssassin score

Discussion in 'E-mail Discussions' started by DjKytra, Apr 30, 2015.

  1. DjKytra

    DjKytra Registered

    Joined:
    Apr 30, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Italy
    cPanel Access Level:
    Root Administrator
    Hello guys,
    there is a way for customize spamassassin score?

    Example:
    score BAYES_00 -2.0
    score BAYES_05 0.1
    score BAYES_20 0.3
    score BAYES_40 0.5
    score BAYES_50 1.5
    score BAYES_60 2.5
    score BAYES_80 4.0
    score BAYES_95 10.0
    score BAYES_99 15.0
     
  2. DjKytra

    DjKytra Registered

    Joined:
    Apr 30, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Italy
    cPanel Access Level:
    Root Administrator
    I edit /etc/mail/spamassassin/local.cf with
    score BAYES_00 -2.0
    then /scripts/restartsrv_spamd

    but still not work :(
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. DjKytra

    DjKytra Registered

    Joined:
    Apr 30, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Italy
    cPanel Access Level:
    Root Administrator
    No custom rules, just score edit.

    I try to send an email from an external address, and the score is not affect.

    For example, without a customization SPF_PASS is 0, with a customization I set SPF_PASS -2.0 but if I try to send an email I see always SPF_PASS 0
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  6. DjKytra

    DjKytra Registered

    Joined:
    Apr 30, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Italy
    cPanel Access Level:
    Root Administrator
    Ok done!

    According with Eric Delorme (cPanel Level II Technical Analist)

    Hello,

    There is no need to use the old style spamassassin to make the customizations desired. Spamassassin is rather flexible. You just need to use a separate configuration file in /etc/mail/spamassassin/ but with another name of your choosing so it's included and with the extension .cf like /etc/mail/spamassassin/mine.cf

    Once these rules are set you would need to restart Spamassassin though.

    /scripts/restartsrv spamd


    In order to check the configuration before restarting you would do

    /usr/local/cpanel/3rdparty/bin/spamassassin --lint

    If there are errors you will see something like "warn: config: failed to parse line, skipping, in ". This can be tested so you can see if the icluded file is added pur some random characters in a file with .cf extension in /etc/mail/spamassassin and run "/usr/local/cpanel/3rdparty/bin/spamassassin --lint".

    Thank you!
     
    EneTar likes this.
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page