[CentOS] filter unwanted email

Thu Feb 3 15:56:17 UTC 2011
Andrew Grimberg <tykeal at bardicgrove.org>

On Thu, 2011-02-03 at 10:38 -0500, testwreq wreq wrote:
> I am new to CentOS. How do I set a rule to so that any email coming from @
> linkedin.com (and other abused locations), going to an application RT (setup
> on the system), will get rejected or dropped silently.

Procmail filters on the receiving account would be the easiest solution.

Make sure that procmail is installed and then man procmailrc for how to
configure it.

IIRC for RT ticket submission/modification via email to work you have to
be using a mail filter of some sort already and the docs give a basic
promail filter for you to use.  As such, you should just need to add a
few rules ahead of that particular rule to catch the type of mail you
don't want.

This of course is just scratching the surface of keeping unwanted mail
out of your ticket tracking system ;)