I start spamd with the following. ===== #!/bin/sh # # spamassassin This script starts and stops the spamd daemon # # chkconfig: 2345 80 30 # # description: spamd is a daemon process which uses SpamAssassin to check # 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/spamassassin ] ; then . /etc/sysconfig/spamassassin else SPAMDOPTIONS="-d -c -a -m5 -H" 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 $SPAMDOPTIONS RETVAL=$? echo [ $RETVAL = 0 ] && touch /var/lock/subsys/spamassassin ;; stop) # Stop daemons. echo -n "Shutting down spamd: " killproc spamd RETVAL=$? echo [ $RETVAL = 0 ] && rm -f /var/lock/subsys/spamassassin ;; restart) $0 stop $0 start ;; condrestart) [ -e /var/lock/subsys/spamassassin ] && $0 restart ;; status) status spamd ;; *) echo "Usage: $0 {start|stop|restart|status|condrestart}" exit 1 esac exit 0 ===== How would I add the debugging to this script. Is there more definition on what debugging switches to use and how. Thanks -----Original Message----- From: Matt Kettler [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 10:12 AM To: Gary Manigault; users@spamassassin.apache.org Subject: Re: Spamc / Spamd At 10:03 AM 10/27/2004 -0500, Gary Manigault wrote: >1. I want to use the configuration of Postfix, Procmail Spamd /Spamc. >I >have the spamd daemon running. I tried to have the box start spamc to >check for spam. I am not sure that I have set it up correctly. Your call to spamc looks fine. What did you pass to spamd when you started it? For some testing on your own, you can try this: First start spamd with debugging on, maybe even non-daemonized in a extra console. Then run some sample messages through spamc on the command line: cat sample-spam.txt | spamc That will at least let you see some of what's going on. (sample-spam.txt is included in the tarball, or you can use just about any single-message email file)