I am trying to make Spam Assassin 3.0 redirect all tagged spam emails to one file in /var/spool/SPAM instead of ever having it show up in the individual users email boxes. I've got spamassassin working now (thanks, theo and matt) and it seems to be running through procmail, but it doesnt seem to redirect the mails where i want them, it still seems to send them to the user the spam was originally targeted for. Anyone using Spam Assassin in this way? The less the end users have to deal with it, the better...
Joe Jenkins /etc/procmailrc: DROPPRIVS=yes VERBOSE=on LOGABSTRACT=yes LOGFILE=/var/log/procmail.log COMSAT=no # Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc' # if you use the spamc/spamd combination) # # The condition line ensures that only messages smaller than 250 kB # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam # isn't bigger than a few k and working with big messages can bring # SpamAssassin to its knees. # # The lock file ensures that only 1 spamassassin invocation happens # at 1 time, to keep the load down. # :0fw: /tmp/spamassassin.lock * < 256000 | spamc SPAMDIR=/var/spool/SPAM :0: * ^X-Spam-Flag: YES $SPAMDIR/STOPPEDSPAM :0: * ^X-Spam-Level: \*\*\*\*\* $SPAMDIR/STOPPEDSPAM :0: * ^X-Spam-Flag: Yes $SPAMDIR/STOPPEDSPAM