Why does MagicSpam stop working at random times?

This is where the frequently asked questions, and responses is kept. You should do a quick search on any questions before posting to the general forum. Your question may already be answered.

Moderators: wizard, magicspam

Post Reply
magicspam
Posts: 1563
Joined: Tue Oct 28, 2008 2:27 pm

Why does MagicSpam stop working at random times?

Post by magicspam » Thu Aug 27, 2015 2:41 pm

It is most likely that the cPanel installation was configured to use CSF, a runaway process daemon designed to detect when programs start using too many processes or using too much memory.

In the default recommended configurations, CSF is supposed to only report incidents; however, we have found that for some reason the implementation in the WHM plugin appears to be set to automatically kill such processes and sadly does not provide a configuration option in the interface to change this behavior. On your server, CSF was configured to kill programs that meets one of the following criteria:
  • process exceeds 500MB of memory
  • process runs for more than 1800 seconds
  • process spawns more than 10 sub processes
The magicspam-daemon process is most likely being killed automatically after running more than the specified number of seconds (for which CSF is configured for); another possibility of the magicspam daemon being killed is also during times of high traffic for exceeding 10 sub processes as part of standard email processing.

To fix this, simply add the magicspam-daemon program to the configuration file. Inside the file /etc/csf/csf.pignore, add the following line:

Code: Select all

exe:/usr/share/magicspam/bin/magicspam-daemon
then restart the CSF daemons:

Code: Select all

csf -r
/etc/init.d/lfd restart
This should ensure that CSF will no longer attempt to kill magicspam-daemon.

Consider reviewing the safety of having the setting PT_USERKILL enabled in /etc/csf/csf.conf as this is strongly flagged as 'NOT RECOMMENDED' by the creators of CSF (http://configserver.com/cp/csf.html).

Post Reply

Return to “Frequently Asked Questions (FAQ)”

Who is online

Users browsing this forum: No registered users and 1 guest