Spamd full queue

Somehow I have problems receiving mails. It must be the spamd. When I use the client version the system runs fine. But when I use spamd i got this mess:

the mails got high delays like relay=local, delay=1000 the queue got filled. And the Sender receives error messages like:

user.mydomain@myserver.net (expanded from mail@mydomain.de): Command time limit exceeded: "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME"

Final-Recipient: rfc822; user.mydomain@myserver.net Original-Recipient: rfc822;mail@mydomain.de Action: failed Status: 5.3.0 Diagnostic-Code: x-unix; internal software error

procmail log has entries like: Time:1273265223 From:root@myserver.net To:root@myserver.net User:root Size:855 Dest:/root/Maildir/new/1273265223.16179_0.alpha.webinger.net Mode:None procmail: Forcing lock on "/tmp/virtualmin.spamassassin"

I must say that i changed spamassassin to run with one process only

/etc/default/spamassassin ENABLED=1 OPTIONS="--min-children=0 --min-spare=0 --max-spare=0 --create-prefs --max-children=1 --helper-home-dir" PIDFILE=/var/run/spamd.pid CRON=0

the /etc/spamassassin/local.conf looks like that

bayes_ignore_header X-Bogosity bayes_ignore_header X-Spam-Flag bayes_ignore_header X-Spam-Status bayes_ignore_header X-Spam-Level bayes_ignore_header X-purgate bayes_ignore_header X-purgate-ID bayes_ignore_header X-purgate-Ad bayes_ignore_header X-GMX-Antispam bayes_ignore_header X-Resent-For bayes_ignore_header X-Resent-By bayes_ignore_header X-Resent-To bayes_ignore_header Resent-To bayes_ignore_header Sender bayes_ignore_header Precedence bayes_ignore_header X-Antispam bayes_ignore_header X-Sieve bayes_ignore_header X-Spamcount bayes_ignore_header X-Spamsensitivity bayes_ignore_header X-Sieve bayes_ignore_header X-WEBDE-FORWARD

razor

use_razor2 1 razor_config /etc/razor/razor-agent.conf

razor punkte

score RAZOR2_CHECK 1.8 score RAZOR2_CF_RANGE_11_50 0.32 score RAZOR2_CF_RANGE_51_100 2.7

pyzor

use_pyzor 1 pyzor_path /usr/bin/pyzor add_header all Pyzor PYZOR score PYZOR_CHECK 4.8

Status: 
Closed (fixed)

Comments

Are you sure you only want to run one spamd process? That will slow down mail processing by forcing only one message to be processed at a time. I would suggest increasing that limit..

but why does one process slow one email down?

You think it is running in a slow or safe mode or something?

seems it just does nothing with only one spamd process running ok i leave the spare settings ^^

With one process, each message has to wait for the previous one to complete processing .. which can be slow when DNS lookups are needed. With multiple processes more than one email can be scanned at the same time.

it seems with this settings OPTIONS="--min-children=0 --min-spare=0 --max-spare=0 --create-prefs --max-children=1"

there is one spamd process running but the mails are not scanned at all. I only sended one single mail. It is only a test enviroment with one domain able to receive mails so there is really only one mail goin trough the mail system.

when I leave the default settings like this OPTIONS="--min-children=0 --max-children=1 --create-prefs"

and I start spamd there is also only one process running. But when the first mail comes to scan. it starts the second process and that one does the job. So i think the first does only controll the childs. I don't know. Now it runs fine :)