How to filter SPAM

We receive a lot of SPAM in the RT account. When we receive it, RT
creates a ticket on it and sends the autorespond template. We don’t want
to do that.

Can RT filter the incoming mails by the subject or similar? For example,
we can request our customers to put a string in the subject, and RT
discard all the mails that doesn’t have this string (like when the
ticket is opened).

I know that this can be done by procmail or any similar program, but is
it possible to do by RT?

Thanks a lot

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@schapendonk.org, Phone: +31 (0)6 55770237
Student Information Systems and Management at Tilburg University

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

[snip]

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

Yep, we use a similar setup because we got tired of all the SirCam
messages coming into our queues, and it works like a charm. A few
well-placed procmail rules can do wonders.

Tim

Tim Wilde
twilde@dyndns.org
Systems Administrator
Dynamic DNS Network Services