Accepting mail _only_ from a domain

This is Slightly Off Topic but applies to my rt system. Some slime
bucket has discovered the support e-mail address. I’d rather not run
Spamassasin on this system and actually only want mail coming from one
domain. Is this possible via rt-mailgate or should I hunt up a
sendmail/procmail solution?

TIA,
Rod
"Open Source Software - Sometimes you get more than you paid for…"

a message of 18 lines which said:

This is Slightly Off Topic but applies to my rt system. Some slime
bucket has discovered the support e-mail address. I’d rather not run
Spamassasin on this system and actually only want mail coming from one
domain. Is this possible via rt-mailgate or should I hunt up a
sendmail/procmail solution?

[Untested, YMMV, IANAL, batteries not included]

Instead of:

foo: “|/local/rt2/bin/rt-mailgate --queue Foo --action correspond”

Do a:

foo:"|exec /usr/bin/procmail /etc/mail/procmailrcs/foo"

With a /etc/mail/procmailrcs/foo which contains:

MYDOMAIN=bar.com

:0

  • $^From:.*@$MYDOMAIN
    |/local/rt2/bin/rt-mailgate --queue Foo --action correspond

:0
/dev/null

“RAA” == Roderick A Anderson raanders@acm.org writes:

RAA> This is Slightly Off Topic but applies to my rt system. Some slime
RAA> bucket has discovered the support e-mail address. I’d rather not run
RAA> Spamassasin on this system and actually only want mail coming from one
RAA> domain. Is this possible via rt-mailgate or should I hunt up a
RAA> sendmail/procmail solution?

Just wait until your support email makes its way on to bunches of CDs,
and gets shared by the career spammers. Our abuse@ and privacy@
addresses are very popular. Unfortunately, we can’t filter on spam
for them because that’s how people report abuses of our systems, and
it would be bad form to reject those…

We just kill the tickets, and run a purge every so often of "dead"
tickets from the database.

But if you want to limit mail to your support address, review the
restrictions you can impose on it from your mail system, before it
gets to rt-mailgate. It is best done with the tools designed for the
job.

Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/

Thanks Stephane. I was thinking along these lines.

I’ll give it a try this week.

[Untested, YMMV, IANAL, batteries not included]

Instead of:

foo: “|/local/rt2/bin/rt-mailgate --queue Foo --action correspond”

Do a:

foo:"|exec /usr/bin/procmail /etc/mail/procmailrcs/foo"

With a /etc/mail/procmailrcs/foo which contains:

MYDOMAIN=bar.com

:0

  • $^From:.*@$MYDOMAIN
    |/local/rt2/bin/rt-mailgate --queue Foo --action correspond

:0
/dev/null

“Open Source Software - Sometimes you get more than you paid for…”