Possible fix for prefork error in var/log/mailog

xemaps

Verified User
Joined
Apr 13, 2006
Messages
385
Location
Europe
Config : SpamAssassin 3.15/Exim 4.63/FC3

Some error message from var/log/mailog like :
Sep 3 17:00:29 xxxxx spamd[2918]: prefork: sysread(9) failed after 300 secs at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/SpamdForkScaling.pm line 552.

Possible fix, waiting SA bug resolve (open again)
With option --round-robin, spamd load will be equalized into the childs, no more high load and idle childs (that what i understand)

in etc/rc.d/init.d/exim
replace

---------------------------
if [ -e /usr/bin/spamd ]; then /usr/bin/spamd -d -c -m 5 1>/dev/null 2>/dev/null;
fi
---------------------------

with

---------------------------
if [ -e /usr/bin/spamd ]; then /usr/bin/spamd -d -c -m 5 --round-robin 1>/dev/null 2>/dev/null; fi
---------------------------

Notice: if any program like DA change this exim file, you have to edit it again.
See the spamd status with # ps x
Start restart with DA service admin panel or
# service exim restart

I'm not an expert, so please help if you know something about, or if i made faults.
 
Back
Top