How to change Use the system-wide default threshold (5)?
Is there a way to change the above setting for all e-mail accounts under the one cpanel account? without going through each e-mail account and fixing the spam filters.
This setting is seen if you go into webmail for an email box and then go to spam filters, I did go to cpanel -> mail -> spam filters, but it doesn't reflect on each of the mail boxes.
-
Hello @David P., If you update the required_score value using cPanel >> Spam Filters >> Adjust Spam Threshold Score, then the change automatically applies to the entire cPanel account (e.g. all of it's email accounts). From Webmail, clicking on Spam Filters brings you to the control for the Spam Auto-Delete Threshold. These are two separate configuration options. Let me know if you have additional questions. Thank you. 0 -
I have the spam threshold changed, but how do I change the option as well for all accounts, because with the spam threshold set the other option did not change. I do have a question why does spam delete have value if it's disabled under the spam filter settings in cpanel? 0 -
Hello David, Can you upload a screenshot demonstrating what you see in the cPanel UI so we can get a better idea of what you are seeing? Thank you. 0 -
I'd also like to know how to change the default Spam Threshold Score from 5 and make sure this change is reflected in all accounts. Is there a way to do this? I note in the Exim config there are three spam score threshold options. One for "Reject" (at smtp time), one for "Ratelimit" and one for "Bounce". There is no option to set the default "Spam Threshold Score" which is used by SpamAssassin to rewrite the subject and still deliver the message. The default is set to 5 and I can't find a way to change the default - or to set this on mass for all users. I did some checking and I read that you can change /etc/mail/spamassassin/local.cf file for example... # Set the threshold at which a message is considered spam (default: 5.0) required_score 8.0
This doesn't seem to have made any difference in my case. I'd be very surprised if cpanel hasn't provided some option to change the default threshold score, since the Spamassassin integration has been in their product since the start. This would seem to be a pretty basic requirement.0 -
In the end I did this.... 1. Create a user_prefs file with the desired score 2. Upload it to a web accessible location so it can be downloaded by the following script... #! /bin/sh cd /root/cpanel3-skel rm -rf .spamassassin mkdir .spamassassin cd /root/cpanel3-skel/.spamassassin wget --user=username --password=password https://www.mydomain.com/files/user_prefs cd /home for user in `ls /var/cpanel/users` do test ! -d $user && continue rm -rf /home/$user/.spamassassin cp /root/cpanel3-skel/.spamassassin /home/$user/ -R chown -R $user:$user /home/$user/.spamassassin echo $user updated done
I used the /root/cpanel3-skel directory in order to ensure the .spamassassin directory and user_prefs file is copied to all new accounts going forward and the script updates all current users with the user_prefs file.0 -
o_O Just realised I replied to the wrong thread. Sorry o_O 0
Please sign in to leave a comment.
Comments
6 comments