K. We have a solution.
Postmaster is set to
sa@company.com and
sa@company.com goes to Dennis and
DennisBoss@company.com.
I did some reading on release notes of sendmail and they actually have said:
Code:
Make sure that "too many hops" messages are considered important
enough to send an error to the Postmaster (that is, the
address specified in the P option). --release notes for 8.6.6/8.6.6 1994/03/13
It seems that there is no way to turn off these postmaster notifies for too many hops (2.0.0) errors. I can understand why. Too many hops usually indicate a seriously broken mail route. In my case, its not a big deal, we want these messages to die but we don't want the postmaster notify spam.
The fix, although not elegant, is to add a bogus entry into the mailertable for the offending domain.
So I added:
Code:
offendingserver.company.com esmtp:unresolvableaddress.company.com
to /etc/mail/mailertable and then reloaded Sendmail. Now when a message goes out to
someone@offendingserver.company.com, the sender gets an NDR because the domain name is not resolvable. Which is exactly what we want.
Again its not elegant, and there should be a way to control these in Sendmail (maybe "dontblamesendmailpart2"). However I can live with the result above.