Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: spamd is dying

From: brian ally <2audrey(at)sympatico.ca>
Date: Thu Aug 16 2007 - 21:37:36 EDT


maillist wrote:
> brian ally wrote:
>

>> postfix-2.3.3-1
>> cyrus-imapd-2.2.10-3
>> spamassassin-3.1.5-1
>> spamass-milter-0.3.0-1.1.fc2.rf
>> perl-Mail-SpamAssassin-3.1.5-1
>>
>> I'm seeing spamd processes dying consistently:
>>

> How are you starting spamd? I think you are starting spamd as a user
> without permissions to /var/spool/spamassassin/bayes.

A script in /etc/init.d (SA was installed as a fedora RPM). The relevant lines:
-- snip --
prog="spamd"

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# Set default spamd configuration.
#SPAMDOPTIONS="-d -c -m5 -H"
SPAMDOPTIONS="-d -m5 -H"
SPAMD_PID=/var/run/spamd.pid

# Source spamd configuration.
if [ -f /etc/sysconfig/spamassassin ] ; then

         . /etc/sysconfig/spamassassin
fi

[ -f /usr/bin/spamd -o -f /usr/local/bin/spamd ] || exit 0 PATH=$PATH:/usr/bin:/usr/local/bin

Do you need help?X

# By default it's all good
RETVAL=0 # See how we were called.
case "$1" in

   start)

         # Start daemon.
         echo -n $"Starting $prog: "
         daemon $NICELEVEL spamd $SPAMDOPTIONS -r $SPAMD_PID
         RETVAL=$?
         echo
         if [ $RETVAL = 0 ]; then
                 touch /var/lock/subsys/spamassassin
         fi
         ;;

-- snip --

> Also, in my experience, that line in your config file should actually be
> changed from:
>
> bayes_path /var/spool/spamassassin/bayes
>
> to:
>
> bayes_path /var/spool/spamassassin/bayes/bayes

Aarghh! Why is this so opaque in the docs? FWIW, google shows 660 pages for "bayes" vs. 7 for "bayes/bayes". I'm thinking that it doesn't really matter, as long as the daemons can find what's been created.

What about the missing journal? Is that an issue here?

> I start spamd like this:
>
> /usr/bin/spamd -r /var/run/spamd.pid \
> -d --username=defang --max-spare=8 --min-children=10 --max-children=45
>

I'll try some of those params. Certainly, i should bump up the max-children from 5 and see if that helps.

One thing that just jumped out at me is that this init script has -H, which expects a directory as an argument:

Do you need more help?X

  -H [dir], --helper-home-dir[=dir] Specify a different HOME directory

Maybe that has something to do with this. I'll drop it (or should i give it "/var/spool/spamassassin"?) and see if that works.

Thanks!

brian Received on Thu Aug 16 21:38:58 2007

This archive was generated by hypermail 2.1.8 : Wed Oct 24 2007 - 10:16:21 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library