Link to home
Start Free TrialLog in
Avatar of Jm_saunders
Jm_saundersFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Exchange 2010 - routing between internal servers in different physical locations

Hey all, I have a bit of a strange situation that I could do with some help in getting to grips with. The company I work for has a customer who has two Exchange 2010 servers located in different physical locations. The head office has been running Exchange 2010 for a couple of years, whereas the branch office was running Exchange 2003 until a couple of weeks ago, when their server was replaced by a new once running Exchange 2010. The server in the head office is called MMVSEX01, the server in the branch office is called MMVSEX02.

Since we upgraded their branch office there has been a problem with the routing of email. What seems to happen is that when users with mailboxes on MMVSEX01 send an external email, Exchange routes the email via the other server (MMVSEX02), which then sends the message back to MMVSEX01, and then it goes out to their smarthost (relay.mx.trendmicro.eu). I say "seems to happen" as I'm not sure if I'm interpreting the header correctly. Running it through mxtoolbox's header analyser certainly seems to confirm this suspicion;

 User generated image
One thing I noticed that is wrong with their configuration is that they have no sites configured in AD other than the default (i.e. default-first-site-name). Would configuring the sites and moving the servers into the correct sites stop Exchange from routing the messages between the two servers unnecessarily? Or is this something I should leave alone? Any advice or insight would be most welcome, as I don't really understand why Exchange is doing this.
ASKER CERTIFIED SOLUTION
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Create Scoped connector in your primary Site. That way, primary site hub severs will be doing external mail routing.

Or you can enable it on your current send connector. It is available under the connector properties.
Avatar of Jm_saunders

ASKER

Thanks for the quick reply Rancy - your comment on the AD sites being configured properly is as I suspected. In my defence, I had nothing to do with setting up any of this!

Neither of these server are configured as a DC - they both have a DC in their physical site, so MMDC01 is in the same office as MMVSEX01 and MMDC02 is in the same office as MMVSEX02.

I just checked the versions, and they're both on the same build of Exchange 2010 (Version 14.2 Build 247.5).

I created a new user and put the mailbox on the database store on MMVSEX02 and sent out a test message. The message went from MMVSEX02 to MMVSEX01, then out to the smarthost and on to the destination;

User generated image
I'm assuming there's something configured to make it route these messages between the servers, however I lack the knowledge of Exchange to see where this is configured. Idealy external messages should go out directly via the smarthost rather than between the two Exchange servers first, but I need instructions on how to go about doing this. Would configuring the sites correctly in AD be sufficient, or do I need to do something else within Exchange itself?
Sorry amitkulshrestha, I didn't see your message before I posted my update. The description of a scoped connector would indeed seem to be the solution to our problem once we configure the AD sites correctly. I'll have to do a bit more research before I make any changes - I can't really go ahead and amend their AD configuration without prior approval.
Okay, let us know, if you need more help.
I have one thing I need to check; if I put the servers in correctly configured sites, do I need to create a connector for the two servers to communicate/route between themselves? Sorry to have to ask such a simple question, but I am not an Exchange guy.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I found a fix for the issue without having to change the site configuration. A very knowledgeable man at Microsoft gave me the solution, and explained the reason why this happens. Exchange 2010 is designed to use a hub transport server that is remote from the mailbox server that the email originates from. It will do this only within a site, however, so it will not select an arbitrary server outside of the site boundaries. It does this to provide a degree of fault tolerance, as it means that there is a copy of any sent email on both the mailbox server and the hub transport server.

It is possible to override this behaviour via the set-mailboxserver powershell command, using the SubmissionServerOverrideList parameter. The example given on technet is;

Set-MailboxServer -Identity Server1 -SubmissionServerOverrideList HubServer01,HubServer02,HubServer03

Where Server1 is the mailbox server and HubServer01,HubServer02 and HubServer03 are the hub transport servers you want the mailbox server to use.
Thanks for sharing the solution.
Also note this issue was due to wrong site configuration, as both hub are in same site, that is the reason mailbox server was using both hub server.

I figured out after reading your question again.
Both are correct - if the sites were configured properly in AD then this would not have been an issue. Configuring the sites properly is therefore the correct solution to the problem, even though this is not what I did in this instance. Thank you for your help!