On 2011-10-06 17:58, Edward Morbius wrote:
List management at KPSU isn't what it could be.
We've got contacts for a few domains which haven't existed in human
memory, and whose messages gum up our works. While I work with client
relations to mop up the mess, would it be possible to define a
delivery rule and assign domains to it such that such domains fail
immediately as undeliverable rather than timing out through the
deferred queue?
Certainly.
You can freely specify recipients or domains that should be rejected
outright; you can include known misspellings of common domains, or even
regular expressions covering many misspellings at once.
Apply a check_recipient_access map before accepting locally-submitted
mail (typically before permit_mynetworks, or permit_sasl_authenticated)
and specify the action as REJECT followed by the message of your choice:
smtpd_recipient_restrictions = check_recipient_access
hash:/etc/postfix/bloody_idiots, permit_mynetworks,
reject_unauth_destination
and in /etc/postfix/bloody_idiots:
geemail.com REJECT That's not a real domain you idiot!
hotmial.com REJECT Typos are not as sexy as you think.
etc.
Don't forget to postmap the file.
Thanks in advance.
--
Dr. Ed Morbius
Chief Scientist / Philologist / Robot Wrangler / Powerplant Operator
Krell Power Systems Unlimited
I hope it is atomic.
--
J.