Spamd uses a lot less system resources than invoking spamassassin, but if one doesn't have root access it's tricky to keep it up and running across reboots and so forth. Here's a procmail recipe to automatically start up spamd when it's needed.
# Avoid filtering anything already tagged, just as a precaution :0 * ! ^X-Spam-Status: Yes { # I recommend uncommenting this until you've seen a few messages go # through the whole process successfully. #VERBOSE=yes # Here we check whether spamd is running. The large score short-circuits # the second test when killall succeeds. Otherwise we start up spamd and # if that succeeds, it's OK to pipe to spamc. # # If killall -0 isn't supported, -1 is OK, spamd won't exit on HUP. If # killall doesn't work at all, use spamd -d -r $HOME/spamd.pid ... and # kill -1 `cat $HOME/spamd.pid`, but starting a shell and two processes # is pretty expensive and we want a fast cheap test here. # # Port 7726 because on your telephone keypad that spells SPAM. :-) # If more than one user is trying this on the same host, they'll each # have to choose their own port number (e.g. base it on your UID). # # You may need to tweak the -F value, and it's probably OK to drop -P. # :0fw * 9876543210^0 ? killall -0 spamd * 9876543210^0 ? spamd -d -p 7726 -F 1 -P | spamc -p 7726 # This is "failsafe" code which only runs if spamd can't be run. # Strip "X-Spam-Status: No" if it appears in the incoming message. # This can be commented out in most cases if the above is working. :0Efhw | spamassassin -d # If we didn't make it through spamc, go through spamassassin instead. # This can be commented out in most cases. :0fw * ! ^X-Spam-Status: | spamassassin -P #VERBOSE=no } This could be simplified if spamc would report somehow that it has failed to make a connection to spamd. _______________________________________________________________ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk