Exchange 2007 - Hub Transport Rule - check To Address

I need to set up a Hub Transport Rule in Exchange 2007, which copies all mails to/from a specific domain to a special account.

This is no problem for incoming mails, as i can use the rule "when the From address contains @testdomain."
With this i catch all mails, send both to @testdomain.com, @testdomain.dk etc...

But how can I set the equivalent Hub Transport Rule for outgoing mails? It can be in the To.., CC... and BCC...
21-09-2016-11-26-17.png
VinumAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David AtkinTechnical DirectorCommented:
Hello,

You should be able to do this by using the condition 'When a message header contains specific words'
message.PNG
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
VinumAuthor Commented:
Hi David.

Yes that did work - but only for To and CC (with 2 seperate rules).
But not for BCC.

How does this rule function? Is that a scan of the header for the word "To" or is their some kind of predefined?
0
David AtkinTechnical DirectorCommented:
Oh sorry, the BCC details aren't actually added to the message headers so it isn't an ideal solution.

I'll let another expert comment to see if they have a solution that will work with BCC as well.
1
Todd NelsonSystems EngineerCommented:
I suppose if you look at the header information of one of the inbound messages you are targeting you would be able to identify the sender by domain name, server (host) name, IP address and/or return path.  Using that information you would be able to create a condition-based rule to forward/copy inbound messages to the special account.

For the outbound messages, as was stated by David, blind copies are unavoidable and unmanageable with transport rules.  That's why there is journaling--which captures all message traffic.

But back on topic ... For outbound mail to a specific domain, create a second transport rule to forward/copy those outbound messages to the specified domain to the special account.

Hope that helps.
1
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.