If you have played long enough with Hub Transport rules in Microsoft Exchange 2007 you might have noticed that they contain no flexible condition that applies on the recipient's address.
For whatever reason it is always assumed that the recipient is a user inside your organization and you won't find an easy way to implement the missed ToAddressContains predicate.
In this example I will show you how to build your own ToAddressContains predicate and create a Hub Transport Rule that will Blind Carbon Copy all emails sent to @domain.com to a specific mailbox, this mailbox will be called Alerts.
Microsoft Exchange 2007 up to SP1 Rollup update 8
If you are running any version of Exchange 2007 up to SP1 Rollup 8 create your transport rule by running the following from Exchange Management Shell.
Of course make sure to replace @domain.com and Alerts with the required values.
After deploying Microsoft Exchange 2010 in your existing Exchange 2007 organization you might face the following error from using either Exchange Management Shell or Exchange Management Console
An IIS directory entry couldn’t be created. The error message is Access is denied. HResult = –2147024891
The error looks like this in EMS