You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Joe Jenkins <jo...@nerdnet.com> on 2004/10/12 23:05:19 UTC

Sending all spam to one email box.

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


Re: Sending all spam to one email box.

Posted by Bob Mortimer <Bo...@mortimer.nildram.co.uk>.
On Tuesday 12 Oct 2004 22:05, Joe Jenkins wrote:

> 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...

Amavisd-new can do this for you. I get it to deliver all my spam to a spam 
account and use procmail to filter the various scores into different folders 
(maybe, probable, definite etc.). Once you get confident you can get amavis 
to discard the really high scoring ones too.

http://www.ijs.si/software/amavisd/

Bob