[TriLUG] Simple spamassassin question

Reginald Reed reginald at cisco.com
Tue Mar 4 12:41:48 EST 2003


I'm using Spamassassin locally as you described and it's working great.
I just have a crap load of old emails that I can't just nuke.  I'll stop
being lazy and come up with a solution.

Thanks.

> -----Original Message-----
> From: trilug-admin at trilug.org 
> [mailto:trilug-admin at trilug.org] On Behalf Of Tanner Lovelace
> Sent: Tuesday, March 04, 2003 10:19 AM
> To: trilug at trilug.org
> Subject: Re: [TriLUG] Simple spamassassin question
> 
> 
> On Tue, 2003-03-04 at 09:45, Reginald Reed wrote:
> > What is the easiest way to have spamassassin process a 
> sendmail mbox 
> > file moving spam to another mbox file?  I know this has to be 
> > incredibly simple, but I thought I'd check here first before I dove 
> > in.
> > 
> > Thanks in advance!
> 
> Well, spamassassin doesn't generally do the moving (I think 
> it can, but there are much better tools to do that).  
> Generally, spamassassin just tags the spam (or not spam) and 
> then procmail is given the job of saving it to a different 
> folder.  For example, I filter my mail through spamassassin 
> and then let procmail direct it like this:
> 
> # Catch spam :-)
> :0:
> * ^X-Spam-Status: Yes
> caughtspam
> 
> :0:
> * ^X-Spam-Flag: YES
> caughtspam
> 
> This takes anything with the header "X-Spam-Status: Yes" or
> "X-Spam-Flag: YES" and saves it into the caughtspam folder.
> 
> If your site isn't using spamassassin sitewide, you can add 
> these lines in your ~/.procmailrc *before* the above lines to 
> filter through spamassassin:
> 
> # Tag Spam 
> :0fw
> | /usr/bin/spamassassin -P
> 
> (Make sure, of course, you put the correct path to the spamassassin
> binary.)
> 
> Cheers,
> Tanner
> -- 
> Tanner Lovelace | lovelace(at)wayfarer.org | http://wtl.wayfarer.org/
> --*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
> GPG Fingerprint = A66C 8660 924F 5F8C 71DA  BDD0 CE09 4F8E 
> DE76 39D4 GPG Key can be found at 
> http://wtl.wayfarer.org/lovelace.gpg.asc
> 
> --*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
>  This would be a very good time to hang out with the Open Source 
>  people, before they get formally reclassified as a national security 
>  threat. -- Bruce Sterling
> 




More information about the TriLUG mailing list