Solution:
Redirecting your Exchange Server to use the External DNS Name
To update your Exchange 2007 or Exchange 2010 server you will need to run the following commands from the Exchange Management Shell and replace the Server running the Client Access Role with your external domain name. These commands update the URL for the Autodiscover service, Exchange Web Services (EWS) and the OWA Web-based Offline Address book respectively. Before running these commands you will just need to check make sure a DNS record exists mapping the IP Address to the Exchange Client Access (CAS) server.
Note: Each of these commands below should be run on a single line in the Exchange Management Shell (EMS):
mail.customerdomain.com
Get-ClientAccessServer | Set-ClientAccessServer -AutoDiscoverServiceInternalUri https://mail.customerdomain.com/Autodiscover/Autodiscover.xml
Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -ExternalUrl https://mail.customerdomain.com/EWS/Exchange.asmx -InternalUrl https://mail.customerdomain.com/EWS/Exchange.asmx
Get-OabVirtualDirectory | Set-OabVirtualDirectory -ExternalUrl https://mail.customerdomain.com/OAB -InternalUrl https://mail.customerdomain.com/OAB
Get-ActiveSyncVirtualDirectory | Set-ActiveSyncVirtualDirectory -ExternalUrl https://mail.customerdomain.com/Microsoft-Server-ActiveSync -InternalUrl https://mail.customerdomain.com/Microsoft-Server-ActiveSync
Get-EcpVirtualDirectory | Set-EcpVirtualDirectory -ExternalUrl https://mail.customerdomain.com/ecp -InternalUrl https://mail.customerdomain.com/ecp
Get-OutlookAnywhere | Set-OutlookAnywhere -ExternalHostname mail.customerdomain.com -InternalHostname mail.customerdomain.com -ExternalClientsRequireSsl $true -InternalClientsRequireSsl $true -DefaultAuthenticationMethod NTLM
// exchange commands for exchange 2010
You need to open Exchange Mangement Console
The Server Configuration, owa, and update the Internal URL: to fully qualified name both boxes.
Set FQDN for POP service to fix the error:
[PS]> Set-POPSettings -X509CertificateName exchange2010.example.com
Do the same for IMAP service:
[PS]> Set-IMAPSettings -X509CertificateName exchange2010.example.com
Restart POP and IMAP services:
[PS]> Restart-service MSExchangePOP3
[PS]> Restart-service MSExchangeIMAP4
Recycle the IIS Application Pools
Next to make these commands take effect you have to tell IIS to push these changes by recycling the application pools.
- Open IIS Manager by clicking Start, then enter inetmgr.
- Expand the server and expand Application Pools, then right-click on MSExchangeAutodiscoverAppPool, and select Recycle.
|