At one of the places I do work for, we have a Microsoft Exchange 2010 server for the office email/calendar system. This works great internal, but when sending external we relay off of a CentOS box running a sendmail
system which acts as the internal-to-external mail relay system.
This works great for sending directly to someone externally, and helps keep our corporate email behind the firewall, but we have a small problem. Out of office replies which are automatically being sent to external mailboxes by Exchange are getting eaten by the sendmail box, with a "User unknown" error. This is the gist of the errors (sanitized of course):
Dec 27 08:30:11 MAILRELAY sendmail[27225]: uBRDUAlg027225: from=<pvrs=01697e799=foo@bar.baz>, size=3130, class=1, nrcpts=1, msgid=<uuid@bar.baz>, proto=ESMTP, daemon=MTA, relay=[InternalIP]
Dec 27 08:30:13 MAILRELAY sendmail[27230]: uBRDUCRG027228: to=<foo@bar.baz>, delay=00:00:01, xdelay=00:00:00, mailer=smtp, pri=122987, relay=[InternalIP], dsn=5.1.1, stat=User unknown.
When sending outbound mail from the inside corporate systems (NOT automated replies!), everything works:
Dec 27 08:34:02 MAILRELAY sendmail[27250]: uBRDY7jA027250: from=<me@corporate.domain>, size=12716, class=0, nrcpts=1, msgid=<uuid@mailserver.location.corporate.domain>, proto=ESMTP, daemon=MTA, relay=[InternalExchangeIP]
Dec 27 08:34:09 MAILRELAY sendmail[27252]: uBRDY7jA027250: to=<foo@bar.baz>, delay=00:00:02, mailer=smtp, pri=132716, relay=[InternalIP] [InternalIP], dsn=2.0.0, stat=Sent (Requested mail action okay, completed.)
... and the message is delivered as expected. It seems something about the system is eating the automatic "Out of Office" replies, so they aren't getting out to external destinations.
Has anyone seen this and found such a solution? I'm not 100% sure why it's dying on us with these, so if anyone has a solution I'd love to hear it.