Limiting the Maximum Number of Child Processes for spamd

If there is a large spam attack, then too many processes are started by spam deferral daemon spamd and the system can run out of resources. In Parallels Plesk Panel 7.5 and Parallels Plesk Panel 8.0 you can limit the number of simultaneously running SpamAssassin processes with the SPAMASSASSIN_MAX_CHILDREN option in /etc/psa/psa.conf:

SPAMASSASSIN_MAX_CHILDREN 5

Specify a desired value and restart psa-spamassassin.

If the line is omitted then the default value for SpamAssassin 3.x is 5.

Since Parallels Plesk Panel 8.1 this value can be managed through Parallels Plesk Panel. Use the The maximum number of worker spamd processes to run (1-5) option on the Server > Settings > SpamFilter page in Parallels Plesk Panel 8.x, . The value is stored in the misc table of the psa database:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e "select * from misc where param='spamfilter_max_children'"

+-----------------------------------+-----+

| param                     | val |

+-----------------------------------+-----+

| spamfilter_max_children   | 5 |

+-----------------------------------+-----+