In some SMTP server implementations (i.e. Postfix) you can enable Delivered-To and X-Original-To headers that will be added to your email. (or [X-]Envelope-To)

This is very helpful with distribution lists to determine which e-mail address the mail has been redirected to.

So, when the mail has been sent to [email protected], you can see in the Delivered-To or Envelope-To header that it has been redirected (distributed) to [email protected], which is one of many other e-mail addresses that are linked to a single mailbox.

How do I find which address was used to deliver this mail to a specific mailbox on Microsoft Exchange 2010?

Looking at the plain message (with all headers) i can not find any information that the mail arrived via address [email protected]

I think I need the Delivered-To header (or a similar one) to be set on Microsoft Exchange when a mail is delivered via distribution lists.

Is there any way to enable such header in Exchange 2010?

I need it so that our Ticket system (OTRS) correctly recognizes where the ticket belongs to. Adding all the e-mail addresses of all distribution lists to the system configuration is not the right solution.

And if there is a solution for Exchange 2010, is this possibly also applicable to Exchange 2007?


Solution 1:

If I am understanding the question correctly, here is a way to get the headers you want, but I bet you won't like it. It is based on transport rules.

If you can control the set of OTRS addresses and they can be registered in Exchange (as Exchange contacts, maybe) then you can make a transport rule for each of them as follows:

Apply rule to messages
sent to **OTRS Username**
and set X-Envelope-To with **[email protected]**

As fmysky notes, the horrible thing about transport rules is that they take literal strings. So you would need a transport rule for each OTRS address (but you would not need one for every distribution list).

I tried this in my Exchange 2007 environment and it worked when I sent a message to one of our internal distribution lists.