Just installed Spamassassin and so far everything is working ok.  EXCEPT for a few issues:

 

1.       I’m running FreeBSD 4.4 and want to invoke spamd via an initscript.  Here is the script I am using:

 

#!/bin/sh

 

case "$1" in

  start)

        # Start daemon.

        /usr/local/sbin/spamd  > /dev/null & && echo -n ' spamd'

        ;;

  stop)

        # Stop daemons.

        kill `ps uax | grep spamd | grep -v grep | awk '{print $2}'` > /dev/null && echo -n ' spamd'

        ;;

  restart)

        $0 stop

        $0 start

        ;;

  status)

        status spamd

        ;;

  *)

        echo "Usage: $0 {start|stop|restart|status}"

        exit 1

esac

 

exit 0

 

The only problem is that if I try to run it as spamd –a then it fails to startup correctly on boot.  Wondering if anyone found a way around that.

 

 

Also I received some spam regarding Viagra and it was not marked as Spam.  Wondering why…it was an HTML message, does that have anything to do with it?

Reply via email to