Redirect NDR messages with Exchange 2010

emailexchange-2010

For one Exchange mailbox, I want to manage non-delivery notifications as follows

  • redirect to a remote mailbox
  • move to a specific folder

To do so, I created a rule from within Outlook:

Upon receiving a message with "postmaster@" or "Mailer-Daemon@" in the sender address, redirect it to "foobar@remote.example.com" and move it to "myfolder"

However, this works only partially:

  • If Exchange can relay to our firewall, but then the firewall cannot relay the mail further, our firewall sends back as "Mailer-Daemon@firewall.example.com"; this matches the rule. As expected, the mail is both forwarded to "foobar@remote.example.com" and moved to "myfolder"
  • If Exchange can relay to our firewall, and the firewall can relay successfully to the receivers MX, but some problem occurs afterwards, the corresponding mail server sends back a message as "postmaster@receiving-domain.com". This should trigger – and apparently does (I can see this because the message is moved to "myfolder"), but the redirection to "foobar@remote.example.com" does not happen

What could be the problem here?

Best Answer

In order to forward emails to an external recipient you should create first a mail enabled contact with the external email address and then make sure you exchange transport settings allow to forward emails. By default exchange is not allowing that. Check the Settings on Organization Config - Hub Transport - Remote Domains - Default - Message Format - "Allow automatic forwards". Also Check the NDR Message you get if it comes from your exchange server or the receiving one.

Forwarding Transport Settings

Related Topic