11

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?

5
  • 4
    What particular version of Exchange? Aug 26, 2012 at 7:16
  • To Second HopelessN00b's question - What version of Exchange ? Aug 28, 2012 at 13:07
  • @HopelessN00b assume 2010
    – Kaii
    Aug 31, 2012 at 17:55
  • Does it matter which member of the group the Deliveredto header points to, for your OTRS
    – fmysky
    Sep 1, 2012 at 10:37
  • @fmysky yes, thats why i asked this question. there are several distrubution groups, where one of many otrs addresses is a member. I need to know which address exactly is member in the DL, so OTRS can filter the mail correctly and put it in the right queue.
    – Kaii
    Sep 2, 2012 at 12:49

3 Answers 3

2

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.

0

You can add literal strings in custom headers through transport rules, but I believe the feature you want is not possible even with powershell. Unless you make your own transport agent.

0

You can get the original To: address, however once it goes into Exchange, you then can't tell what decisions were taken to get to the mailbox.

Unless you have nested distribution groups, this shouldn't be an issue as you can get the original To: address

If you are using nested distribution groups I would suggest moving to non nested distribution groups.

1
  • Actually, even without nesting we have a problem, as described in my question. A mail is sent to group@domain which then distributes to recipient-123@domain, which is resolved to be delivered to a specific mailbox. When fetching the mailbox, all OTRS can see is To: group@domain but what the filter rules are looking for is To: recipient-123@domain (<< this is what i need!). To resolve this we would have to add all known groups which include recipient-123 to the filter rules as well. But this is impossible because we're mostly never informed when the address is added to a group.
    – Kaii
    Jan 9, 2013 at 10:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .