Hi,
We can use the following steps to resolve the load issue on a cPanel box due to the spamd processes.
1. Edit the /etc/mail/spamassassin/local.cf file
vi /etc/mail/spamassassin/local.cf
then add the following lines to it
a) use_bayes 0 (this will disable some spamassassin functionalities)
b) lock_method flock
(Uncomment these options, if they are commented)
2) run scripts2/autofixer/spamd_dbm_fix
a) Log into WHM and use another URL as "http://your server IP:2086//scripts2/autofixer" - then type the script name "spamd_dbm_fix" and run
b) You can also do the same from the server back end as follows.
#wget http://httpupdate.cpanel.net/autofixer/spamd_dbm_fix
# chmod 755 spamd_dbm_fix
# ./spamd_dbm_fix
3) Run the following lines of codes
# rm -f /home/*/.spamassassin/__db.bayes_toks.new
# rm -f /home/*/.spamassassin/*.lock
NOTE : If the load issue is related to a particular user then there is no need for running this, you can simply enter into the '.spamassassin/' directory for that user and delete the files '__db.bayes_toks.new' and *.lock.
4) Restart spam assassin (restart Exim)
# /scripts/restartsrv_exim
Hope this will help you in such a situation.
Regards,
Sibin



LinkBack URL
About LinkBacks

Reply With Quote




