You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Greg Kopp <gk...@gregkopp.com> on 2004/06/07 21:33:27 UTC

spamd startup script

Can someone paste me an "ideal" spamd startup script for RH 9.0? I am 
using qmail/vpopmail

I think some of the problems I am having might be related to how I am 
starting the daemon. Currently, I am using this in the "start" section:

daemon spamd -x -u spamd -H /home/spamd -d -v -m 10 -Q

Greg

Re: spamd startup script

Posted by re...@gmx.net.
Here is my example suse script...

On Tue, Jun 08, 2004 at 09:12:58AM -0400, Terry Milnes wrote:
> Greg Kopp wrote:
> >Can someone paste me an "ideal" spamd startup script for RH 9.0? I am 
> >using qmail/vpopmail
> 
> 
> spamd file in /etc/rc.d/init.d/
> _________________________________________________________________________
> 
> #!/bin/sh
> #
> # spamassassin This script starts and stops the spamd daemon
> #
> # chkconfig: - 79 30
> #
> # description: spamd is a daemon process which uses SpamAssassin tocheck
> #              email messages for SPAM.  It is normally called by spamc
> #              from a MDA.
> 
> # Source function library.
> . /etc/rc.d/init.d/functions
> 
> # Source networking configuration.
> . /etc/sysconfig/network
> 
> # Check that networking is up.
> [ ${NETWORKING} = "no" ] && exit 0
> 
> # Source spamd configuration.
> if [ -f /etc/sysconfig/spamd ] ; then
>         . /etc/sysconfig/spamd
> else
>         OPTIONS=" -d -x -q -u vpopmail"
> fi
> 
> [ -f /usr/bin/spamd -o -f /usr/local/bin/spamd ] || exit 0
> PATH=$PATH:/usr/bin:/usr/local/bin
> 
> # See how we were called.
> case "$1" in
>   start)
>         # Start daemon.
>         echo -n "Starting spamd: "
>         daemon spamd $OPTIONS
>         RETVAL=$?
>         echo
>         [ $RETVAL = 0 ] && touch /var/lock/subsys/spamd
>         ;;
>   stop)
>         # Stop daemons.
>         echo -n "Shutting down spamd: "
>         killproc spamd
>         RETVAL=$?
>         echo
>         [ $RETVAL = 0 ] && rm -f /var/lock/subsys/spamd
> _______________________________________________________________________________
> 
> >I think some of the problems I am having might be related to how I am 
> >starting the daemon. Currently, I am using this in the "start" section:
> >
> >daemon spamd -x -u spamd -H /home/spamd -d -v -m 10 -Q
> >
> >Greg
> >
> >
> >

Re: spamd startup script

Posted by Terry Milnes <te...@interface.on.ca>.
Greg Kopp wrote:
> Can someone paste me an "ideal" spamd startup script for RH 9.0? I am 
> using qmail/vpopmail


spamd file in /etc/rc.d/init.d/
_________________________________________________________________________

#!/bin/sh
#
# spamassassin This script starts and stops the spamd daemon
#
# chkconfig: - 79 30
#
# description: spamd is a daemon process which uses SpamAssassin tocheck
#              email messages for SPAM.  It is normally called by spamc
#              from a MDA.

# Source function library.
. /etc/rc.d/init.d/functions

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

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

# Source spamd configuration.
if [ -f /etc/sysconfig/spamd ] ; then
         . /etc/sysconfig/spamd
else
         OPTIONS=" -d -x -q -u vpopmail"
fi

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

# See how we were called.
case "$1" in
   start)
         # Start daemon.
         echo -n "Starting spamd: "
         daemon spamd $OPTIONS
         RETVAL=$?
         echo
         [ $RETVAL = 0 ] && touch /var/lock/subsys/spamd
         ;;
   stop)
         # Stop daemons.
         echo -n "Shutting down spamd: "
         killproc spamd
         RETVAL=$?
         echo
         [ $RETVAL = 0 ] && rm -f /var/lock/subsys/spamd
_______________________________________________________________________________

> I think some of the problems I am having might be related to how I am 
> starting the daemon. Currently, I am using this in the "start" section:
> 
> daemon spamd -x -u spamd -H /home/spamd -d -v -m 10 -Q
> 
> Greg
> 
> 
> 

Re: spamd startup script

Posted by Markus Welsch <ma...@suk.de>.
> Can someone paste me an "ideal" spamd startup script for RH 9.0? I am 
> using qmail/vpopmail
> 
> I think some of the problems I am having might be related to how I am 
> starting the daemon. Currently, I am using this in the "start" section:
> 
> daemon spamd -x -u spamd -H /home/spamd -d -v -m 10 -Q

I am not using qmail/vpopmail, but that should not matter what you use 
in particularly that much. My startup script (Debian/GNU Linux) is a bit 
more comfortable, anyways options passed are:

-c -m 20 -a -H -u filter \
--virtual-config-dir=/var/lib/spamassassin/%u -x


Where you might not need the second line at all since you want to do 
everything with SQL lookups?