Change amounth of childs spamd ? (SpamAssassin)

janton

Verified User
Joined
Sep 17, 2009
Messages
145
Hello All,

Yesterday I installed SpamAssassin for Directadmin, but now I notice 3 deamons or childs running each around 60MB RAM, total 180MB Ram. I have a small VPS and not so much email traffic... how could i reduce this to only 1 deamon? or is this called childs..?
 
Hello,


Code:
# grep spamd /etc/init.d/exim
        if [ -e /usr/bin/spamd ]; then /usr/bin/spamd -d -c -m 5

change -m 5 to -m 1 in /etc/init.d/exim and run

Code:
/etc/init.d/exim restart


More settings can be found with
Code:
# spamd --help
...
     -m num, --max-children=num        Allow maximum num children
     --min-children=num                Allow minimum num children
     --min-spare=num                Lower limit for number of spare children
     --max-spare=num                Upper limit for number of spare children
     --max-conn-per-child=num          Maximum connections accepted by child

...
 
Ok thx, will do this now! What is the disadvantage of having only 1 child?
 
Code:
# man spamd

...
-m number , --max-children=number
This option specifies the maximum number of children to spawn. Spamd will spawn that number of children, then sleep in the background until a child dies, wherein it will go and spawn a new child.

Incoming connections can still occur if all of the children are busy, however those connections will be queued waiting for a free child. The minimum value is 1, the default value is 5.

Please note that there is a OS specific maximum of connections that can be queued (Try "perl -MSocket -e'print SOMAXCONN'" to find this maximum).

Note that if you run too many servers for the amount of free RAM available, you run the danger of hurting performance by causing a high swap load as server processes are swapped in and out continually.
...
 
ok thx! Last question.. I now get emails with:
Spam detection software, running on the system "vps.domain.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email.


But how to stop these emails? because now instead of getting the spam emails i get the warning of spam emails :P
 
User level login in directadmin -> Spamassassin Setup

http://domain.com:2222/CMD_SPAMASSASSIN?domain=domain.com
 
Back
Top