Recently I found that spamd or SpamAssassin could not start on my VPS (Virtual Private Server). It always emailed me with the following message:
spamd failed @ Thu Apr 14 16:22:42 2011. A restart was attempted automagically.
Service Check Method: [check command]
Cmd Service Check Raw Output: Spamd is not running
Raw Output:
SpamAssassin (spamd) is an open source project from the Apache Foundation for filtering spam mail. SpamAssassin will filter and block untrusted (considered spam) email that comes to your server. As you know, nowadays there are many spam emails that often come with viruses or malicious code. SpamAssassin is installed by default when you use WHM/cPanel, and you can see the process called “spamd” in server status.
To fix it, I just updated cPanel. It will take a while — around 30 minutes to update and check. Luckily cPanel has a script for that. Just type the command below and wait until it finishes:
/scripts/upcp --force #reinstall
To check and restart spamd you can use the commands below:
/scripts/restartsrv_spamd --status #Check status
/scripts/restartsrv_spamd #restart
I hope this article helps you and saves your time. If you have anything in mind please leave a comment below.
