[rt-users] how to filter SPAM

Martin Schapendonk martin at schapendonk.org
Fri Aug 10 05:38:16 EDT 2001


On Fri, 10 Aug 2001 carles at inlander.es wrote:
# I know that this can be done by procmail or any similar program, but is
# it possible to do by RT?

I don't know if it's possible with RT (I guess not), but you gave the
solution yourself: use procmail.

Pipe to procmail instead of rt-mailgate, filter all spam and make
procmail pipe the mail rt-mailgate.

/etc/mail/aliases:
rt:	|"/path/to/procmail /some/procmailrc"

/some/procmailrc:
# Spam dropping rule
:0
* ^FROM.*Cash!!!!!!!!!!!!!!!!!!
/dev/null

# Pipe to RT
:0
| /path/to/rt-mailgate


I haven't tested this setup, but I think it should work.

Regards,

Martin Schapendonk

-- 
  Martin Schapendonk, martin at schapendonk.org, Phone: +31 (0)6 55770237
  Student Information Systems and Management at Tilburg University





More information about the rt-users mailing list