You need to set the IIS virtual directory to the correct domain.
With powershell you can validate the URL that way:
Get-ActiveSyncVirtualDirectory | fl internalurl,externalurl
Get-AutoDiscoverVirtualDirectory | fl internalurl,externalurl
Get-ECPVirtualDirectory | fl internalurl,externalurl
Get-OabVirtualDirectory | fl internalurl,externalurl
Get-WebServicesVirtualDirectory | fl internalurl,externalurl
You can set the new value that way, with a Set- command:
Get-ActiveSyncVirtualDirectory -server EXCHANGE |
Set-ActiveSyncVirtualDirectory -ExternalUrl
‘https://mail.DOMAIN.ca/Microsoft-Server-ActiveSync’ -InternalUrl
‘https://mail.DOMAIN.ca/Microsoft-Server-ActiveSync’
Get-AutodiscoverVirtualDirectory -server EXCHANGE |
Set-AutodiscoverVirtualDirectory -ExternalUrl
‘https://mail.DOMAIN.ca/Autodiscover/Autodiscover.xml’ -InternalUrl
‘https://mail.DOMAIN.ca/Autodiscover/Autodiscover.xml’
Get-ECPVirtualDirectory -server EXCHANGE | Set-ECPVirtualDirectory
-ExternalUrl ‘https://mail.DOMAIN.ca/ECP’ -InternalUrl ‘https://mail.DOMAIN.ca/ECP’
Get-OabVirtualDirectory -server EXCHANGE | Set-OabVirtualDirectory
-ExternalUrl ‘https://mail.DOMAIN.ca/OAB’ -InternalUrl ‘https://mail.DOMAIN.ca/OAB’
Get-WebServicesVirtualDirectory -server EXCHANGE |
Set-WebServicesVirtualDirectory -ExternalUrl
‘https://mail.DOMAIN.ca/EWS/Exchange.asmx’ -InternalUrl
‘https://mail.DOMAIN.ca/EWS/Exchange.asmx’
Via the GUI you can look there for a guide
After those change you must issue a iisreset, and restart the outlook client.
Don't forget to create a host record in your local DNS to match the domain name with a local IP, or if you have a firewall that support it you can create a inside NAT rule that when the request is your public exchange IP, it rewrite the destination as the local IP.