Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to know if it's possible to configure Exchange 2010 to read x-headers from an outbound message (say, to and then re-direct the message to an alternate smarthost if the x-header is present. Does anyone know if this can be done?

share|improve this question
in exchange 2003 if I recall this was possible by scripting an outbound filter and applying it via the admin console, I used to have this occur to apply legal disclaimers for all outbound mail. I can't say for sure with EX2010 as I do not have a deploy to experiment upon. – Oneiroi Mar 20 '12 at 14:31
Cool info. Thanks @Oneiroi – Mike B Mar 20 '12 at 18:33
up vote 3 down vote accepted

This can not be done out of the box. However it can be done with several third party extensions or you can write a custom transport agent if you have .net experience.

Sample Code::How to control routing from your own routing agent

share|improve this answer

No - at least not as you're describing it.

In ESM, look at your Organization Configuration | Hub Transport | Transport Rules. One of the Conditions you can configure is when the message header contains specific words. If you look at the Actions step of the wizard, you can fiddle with the message itself - adding recipients or putting a legal disclaimer in the body. What isn't there is anything that can directly change the message's routing.

There are third-party products that will choose a smarthost based on sender - but a quick search doesn't seem to turn up anything that works on a message header.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.