Joey wrote:
Below is my config, how can I pick what to use -vs- not when we are getting
slammed and need all the blocking we can, but of course don't want the
server to die in the next 24 hours.  I cleaned up the file some as you can
see from my FIRST CONFIG FILE to SECOND.

If I'm reading this right, these are config files for Rules du Jour. These only specify which rulesets that script will automatically update, not which rulesets SpamAssassin will use. SA will use any .cf files it finds in /etc/mail/spamassassin, but it will not look in subdirectories.

To disable rulesets temporarily, you'll need to move the .cf files out of /etc/mail/spamassassin and restart spamd. If you've picked a set that you always want to disable under these circumstances, you can create a directory and write a short script like this:

#!/bin/sh
SA_DIR="/etc/mail/spamassassin"
DISABLED_DIR="/etc/mail/spamassassin/disabled"
SA_RESTART="killall -HUP spamd"
DISABLE_FILES="example1.cf example2.cf example3.cf"

cd $SA_DIR
mv $DISABLE_FILES $DISABLED_DIR
$SA_RESTART


Then when you want to reactivate them, you can just move all the files out of the disabled directory back to /etc/mail/spamassassin and restart spamd again.

--
Kelson Vibber
SpeedGate Communications <www.speed.net>

Reply via email to