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!

Customize SpamAssassin score

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

  1. DjKytra

    DjKytra Registered

    Joined:
    Apr 30, 2015
    Messages:
    4
    Likes Received:
    3
    Trophy Points:
    3
    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. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,184
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. DjKytra

    DjKytra Registered

    Joined:
    Apr 30, 2015
    Messages:
    4
    Likes Received:
    3
    Trophy Points:
    3
    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 :(
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,184
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Could you provide more details on how you tested the custom rules and the method you used to determine it did not work?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. DjKytra

    DjKytra Registered

    Joined:
    Apr 30, 2015
    Messages:
    4
    Likes Received:
    3
    Trophy Points:
    3
    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
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,184
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you using any third-party applications such as MailScanner that could change the default behavior of SpamAssassin?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. DjKytra

    DjKytra Registered

    Joined:
    Apr 30, 2015
    Messages:
    4
    Likes Received:
    3
    Trophy Points:
    3
    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!
     
    mooseontheloose, MaraBlue and EneTar like this.
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,184
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    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