[rt-users] Spam control

Derek Morris dmorris at elmodenogardens.com
Thu Aug 12 20:54:43 EDT 2004


If you already have procmail setup for local delivery, the recipe itself 
is pretty easy:

:0:
* ^X-Spam-Flag: YES
         /home/rt3/spam.mbox

I have this in the /home/rt3/.procmailrc file to save anything marked as 
spam to a regular mbox file instead of passing it to the regular mailbox 
(which I use fetchmail to pickup).  You could just as easily discard it 
with:

:0
* ^X-Spam-Flag: YES
	/dev/null

I can't help if you don't have procmail setup already since I use 
sendmail instead of Postfix, or if you deliver directly to rt-mailgate 
with an alias.

HTH

Derek

Fran Fabrizio wrote:
> 
> Due to the nature of our RT helpdesk the email address has to be 
> published in public space (both virtual and real - web pages and paper 
> flyers around the department :-) and as such, it wasn't long before the 
> spammers scraped it up.  I'm looking to do a bit of spam control before 
> the mail hits the helpdesk and creates spurrious tickets.
> 
> I have a mail server running a Postfix/amavisd-new/SpamAssassin setup so 
> recognizing the email as spam is not a problem.  The issue is that for 
> most users of this mail system, we still want to deliver the mail and 
> let them set client-side filters to deal with the spam as they see fit 
> based on the X-Spam headers added to their email.  However, for RT 
> helpdesk mail, we'd probably want to just discard these messages.
> 
> This question might be more appropriate on another list, but I thought 
> I'd ask if anyone here has good spam solutions.  I was thinking I could 
> maybe run the message through procmail, which could look at the headers 
> and toss out anything with an X-Spam-Flag set to Yes. I'm not at all 
> familiar with procmail so I am not sure how to do this or how to pass on 
> the clean ones through to the rt-mailgate script.  Pointers or working 
> examples of the procmail approach or another would be greatly 
> appreciated!  I'm going to start reading up on procmail, but it would be 
> good to know if I'm even barking up the right tree.
> 
> Thanks,
> Fran
> 

-- 
Derek Morris
El Modeno Gardens, Inc.		1 (800) 776-8111
dmorris at elmodenogardens.com 	   extension 252



More information about the rt-users mailing list