[EMAIL PROTECTED] wrote:
Rodney M <[EMAIL PROTECTED]> wrote:
Thanks for the tip. Over the weekend I finally fixed my problem. For starters, in order to use spamc (instead of spamassassin) you have to have spamd running. I'm starting spamd like so:
spamd -d -a -v -x -u vpopmail -H /home/vpopmail/
For some reason maildrop didn't like my original mailfilter so I used the following that was posted on the qmailadmin list recently:
Remove the -u from the spamd startup line, you shouldn't need the -H either. Your mailfilter calls spamc with the -u command, so you don't need it with spamd.
By the way, I use the same filter, and it works great.
My spamd line is: /usr/bin/spamd -v -a -c
-Robertson
If I use your spamd line (/usr/bin/spamd -v -a -c), I get the following error in /var/log/maillog:
Dec 15 12:12:32 gigantic spamd[46584]: connection from localhost [127.0.0.1] at port 2529
Dec 15 12:12:32 gigantic spamd[46609]: Use of uninitialized value at /usr/local/bin/spamd line 1101, <GEN5> chunk 2.
Dec 15 12:12:32 gigantic spamd[46609]: Use of uninitialized value at /usr/local/bin/spamd line 1123, <GEN5> chunk 2.
Dec 15 12:12:32 gigantic spamd[46609]: Use of uninitialized value at /usr/local/bin/spamd line 1130, <ASSIGN> chunk 2.
Dec 15 12:12:32 gigantic spamd[46609]: Use of uninitialized value at /usr/local/bin/spamd line 1130, <ASSIGN> chunk 2.
Dec 15 12:12:32 gigantic spamd[46609]: Use of uninitialized value at /usr/local/bin/spamd line 657.
My mailfilter invokes spamc as "/usr/local/bin/spamc -f -u [EMAIL PROTECTED]". Any idea why I'm getting that error? Also, shouldn't you be using the -d flag to daemonize spamd?
I changed my spamd.sh start-up script as follows (the only change from my previous start-up script is that I removed the -x and the -H /home/vpopmail option):
---start--- # Startup / shutdown script for SpamAssassin daemon
case "$1" in start) /usr/local/bin/spamd -d -a -v -u vpopmail && echo -n ' spamd' ;;
stop)
spamdpid=`ps -ax | grep spamd | grep -v grep | grep -v sh | awk '{ print $1 }'`
if [ "$spamdpid" != "" ]; then
kill $spamdpid > /dev/null 2>&1
echo -n " spamd"
fi
;;
*) echo "Usage: `basename $0` {start|stop}" >&2 ;; esac
exit 0 ---end---
Now Spamassassin creates the .spamassassin folder in the vpopmail users folder (ex: /home/vpopmail/domains/debaser.net/test/.spamassassin) the first time an email is sent to that users address. The .razor folder and it's settings are still saved in the /home/vpopmail folder.
The question is how do I get spamassassin to copy a default user_prefs file to the users vpopmail folder (so eventually my users can edit there own spamassassin settings)? I setup a user_prefs file in usr/local/share/spamassassin/ but spamassassin didn't copy it to the vpopmail users .spamassassin folder. Any ideas?
Rodney