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 all user's 'Required Score' for Apache SpamAssassin

Discussion in 'E-mail Discussion' started by jmf1993, Apr 24, 2018.

  1. jmf1993

    jmf1993 Registered

    Joined:
    Apr 24, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    U.K
    cPanel Access Level:
    Root Administrator
    I have searched and searched this forum. However, none of the advice seems work.

    I am trying to update the 'required_score' setting on SpamAssassin for all my users.

    - No user has any user configuration file
    - I have ran the '/scripts/restartsrv_spamd' command after every single change that I have made.

    Things I've tried:
    - Updated the local.cf file to change the score from 5.0 in there. Both with the '#' added and without.
    - Created a file 'custom.cf' and added the 'required_score' setting in there. Changed the file name to start with a 'Z'.

    How is the setting for all user's still at '5.0', after trying all that?

    I'd appreciate any assistance on the matter, please.

    Many thanks.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    The users should have a user_prefs file at /home/$user/.spamassassin/user_prefs modifying the score here would modify the score for that account.

    Is the issue that you're attempting to make the score 5.0 for all accounts at once by modifying /etc/mail/spamassassin/local.cf and the changes aren't being saved?


    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jmf1993

    jmf1993 Registered

    Joined:
    Apr 24, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    U.K
    cPanel Access Level:
    Root Administrator
    Thank you for your reply.

    None of the users have any 'user_prefs' file. I've made sure of that. They've never changed any SpamAssassin setting.

    I would like the score at 8.0 for all accounts but modifying the 'local.cf' file and restarting the service has no impact.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    hi @jmf1993

    I'm testing this locally and trying to replicate. I've renamed my user's user_prefs,

    Code:
    mv /home/$user/.spamassassin/user_prefs{,.bk}
    and modified the local.cf as follows:

    Code:
    # grep required_score /etc/mail/spamassassin/local.cf
    required_score 2.0
    Then ran
    Code:
    /scripts/update_spamassassin_config
    and restarted spamd:

    Code:
    /scripts/restartsrv_spamd
    The new score was immediately referenced for email sent to the user which I removed the user_prefs file for. Can you confirm that the issue persists after following the steps listed here?


    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jmf1993

    jmf1993 Registered

    Joined:
    Apr 24, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    U.K
    cPanel Access Level:
    Root Administrator
    Thank you so much the reply, and testing on your own server.

    I followed the steps to the bone, and the problem sadly does still exist.

    Do you have any other ideas of what it could be?

    Many thanks.
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @jmf1993

    That should have done it unless there's something that's getting missed or you have some other customization there that's getting overlooked.

    You're welcome to open a ticket using the link in my signature so we can take a closer look. If you do open one please reference the ticket ID here so we can update this thread with the outcome.


    Thank you,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. jmf1993

    jmf1993 Registered

    Joined:
    Apr 24, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    U.K
    cPanel Access Level:
    Root Administrator
    Hello,

    So I went ahead and opened a support ticket, I'll paste their reply below.

    Thank you very much for all your assistance yesterday.

    Ticket number - 9464831

     
  8. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,

    I'm glad to hear that the changes worked! I'm also sorry that I didn't think to ask you how you were checking if the scores were not being changed. This is exactly what I did to confirm my findings yesterday (check the spam score on the actual email)

    Thank you for updating us here on 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