Product:
Search Type:

How do I limit the maximum children for spamd? For if there is a large spam attack - too many processes are started and the system can run out of resources.

Article ID: 787 
Last Review: Mar,06 2008
APPLIES TO:
  • Plesk 7.5.4 Reloaded
  • Plesk 8.x for Linux/Unix

RESOLUTION

In Plesk 7.5 and 8.0 you can limit the number of simultaneously running SpamAssassin processes with 'SPAMASSASSIN_MAX_CHILDREN' option in /etc/psa/psa.conf:

     SPAMASSASSIN_MAX_CHILDREN 5

You can specify a desired value then restart psa-spamassassin.
If the line is omitted then the default value is 20 for SpamAssassin 2.6 and 5 for SpamAssassin 3.x.

Since Plesk 8.1 SPAMASSASSIN_MAX_CHILDREN  option is obsoleted but this value can be managed through Plesk CP. Use "The maximum number of worker spamd processes to run (1-5)" on the Settings tab of Server>SpamFilter page. The value is stored in 'misc' table in'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   |
+-------------------------+-----+



Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields