We have two sites, the Headquarter and a Branch Office, each site is in a different city, both networks are interconnected by a site-to-site VPN, and both networks are in the same Active Directory (AD) Domain.
Each site has its own ISP connection for going to Internet.
I have installed one MS Exchange Server 2010 on each site. Both servers have running the Hub Transport (HT), Mailbox (MB) and Client Access Server (CAS) roles.
The Domain is a Windows 2008 R2 Active Directory on both sites. The Branch Office's Domain was the last to be implemented. Before that, the The Branch Office's workstations were connected to the Domain through the site-to-site VPN.
All the workstations are Windows 7.
The Headquarter's Exchange Server stores the mailboxes of the users that work on the Headquarter office, and the The Branch Office's Exchange Server stores the mailboxes of the users that work on the Branch Office.
On each network (Headquarter and Branch Office) we have an Email Security Gateway (ESG) server, so each Hub Transfort should send the outgoing emails through the ESG of it's own network.
I tried to make this by creating two "Send Connectors":
The first connector has been set up with the Headquarter's ESG as the "Smart Host" and with the Headquarter's Exchange Server as "Source Server".
The second connector has been set up with the the Branch Office's ESG as the "Smart Host" and with the Branch Office's Exchange Server as "Source Server".
Both Connectors have the same cost.
The problems are:
All the outgoing messages are being sent only by the first connector, i.e. the Branch Office's outgoing emails (via SMTP) are being sent from the Branch Office's Hub Transport Serve to the Headquarter's Hub Transport Server through the site-to-site VPN.
The Outlook (2010) clients of the Branch Office are still trying to connect to the Headquarter's Exchange Server.
Please help us with this.