We are seeing an odd issue with a newly deployed Exchange 2016 in an Active-Active configuration. There are two sites, each with 2 Exchange servers. The DAG spans the 4 servers, with Active mailboxes at each site. We are using the Unbound namespace model, with the External URL being different than the Internal URL.
The issue is when a user attempts to connect to a mailbox that is hosted on the opposite site to what they are located. The connection is established, and the user is presented with the login dialog, then after logging in, the URL redirects to the External URL and the user is prompted for login again.
My initial thought was Exchange is incorrectly interpreting the connecting subnet as being outside of its subnet, so therefore external. From what I've read, Exchange is site-aware, so it should know that the other sites subnet is internal. We've checked the AD Sites and Services for any errors of misconfigurations, but the subnets are configured correctly.
nltest /server:<servername> /dsgetsite
returns the correct site for each of the Exchange Servers.
So what could be causing the URL to redirect to the External one?