You want to create mailboxes in Exchange Online and use Office 365. Before you can…
Configure Internal and External URL in Exchange 2016
After installing Exchange Server 2016 and configuring the DNS namespace, what’s next? The next step is to configure Internal and External URL in Exchange 2016. Configuring the URLs can be done with Exchange Admin Center (EAC) or with PowerShell. Well, almost all parts can be configured with EAC, because one part (AutoDiscover) needs to be configured with PowerShell. In this article, you will learn how to configure URLs in Exchange Server 2016.
Information Internal and External URL in Exchange 2016
Important: Read the article Exchange 2016 namespace design and planning before you go further.
We have an internal domain named exoip.local and external domain exoip.com. In my example, we are going to configure the namespace mail.exoip.com. This way we can buy a third-party certificate for Exchange Server. We will configure the internal and external URLs with the same name. Almost all the URLs will have the mail.exoip.com in the configuration. That’s because the AutoDiscover URL will be different.
1 2 3 4 5 6 7 8 9 10 |
Service Internal and External URL ------- ------------------------- AutoDiscover https://autodiscover.exoip.com/Autodiscover/Autodiscover.xml Exchange Control Panel https://mail.exoip.com/ecp Exchange Web Services https://mail.exoip.com/EWS/Exchange.asmx Exchange ActiveSync https://mail.exoip.com/Microsoft-Server-ActiveSync Offline Address Book https://mail.exoip.com/OAB Outlook Web App https://mail.exoip.com/owa MAPI over HTTP https://mail.exoip.com/mapi Outlook Anywhere mail.exoip.com |
Do you like to know how the current Exchange URLs are configured? Read the article Find Exchange Server URLs with PowerShell.
An architecture view of the Exchange 2016 namespace is shown below in the topology.
Configure internal and External URL in Exchange with PowerShell
Log in to the Exchange Server 2016. Run Exchange Management Shell as administrator. Set the virtual directory for every component and verify it after. If you like to set the URLs on all the Exchange Servers, remove -Server EX01-2016 from each command. In our example, we like to configure URLs on this particular Exchange Server, this is why we are using the -Server parameter.
Configure URL for Autodiscover.
1 2 3 4 5 6 |
[PS] C:\>Set-ClientAccessServer -Identity EX01-2016 –AutoDiscoverServiceInternalUri https://autodiscover.exoip.com/Autodiscover/Autodiscover.xml [PS] C:\>Get-ClientAccessService -Identity EX01-2016 | Format-List Identity, AutoDiscoverServiceInternalUri Identity : EX01-2016 AutoDiscoverServiceInternalUri : https://autodiscover.exoip.com/Autodiscover/Autodiscover.xml |
Configure URL for Exchange Control Panel (ECP).
1 2 3 4 5 6 |
[PS] C:\>Get-EcpVirtualDirectory -Server EX01-2016 | Set-EcpVirtualDirectory -ExternalUrl https://mail.exoip.com/ecp -InternalUrl https://mail.exoip.com/ecp [PS] C:\>Get-EcpVirtualDirectory -Server EX01-2016 | Format-List InternalUrl, ExternalUrl InternalUrl : https://mail.exoip.com/ecp ExternalUrl : https://mail.exoip.com/ecp |
Configure URL for Exchange Web Services (EWS).
1 2 3 4 5 6 |
[PS] C:\>Get-WebServicesVirtualDirectory -Server EX01-2016 | Set-WebServicesVirtualDirectory -ExternalUrl https://mail.exoip.com/EWS/Exchange.asmx -InternalUrl https://mail.exoip.com/EWS/Exchange.asmx [PS] C:\>Get-WebServicesVirtualDirectory -Server EX01-2016 | Format-List InternalUrl, ExternalUrl InternalUrl : https://mail.exoip.com/EWS/Exchange.asmx ExternalUrl : https://mail.exoip.com/EWS/Exchange.asmx |
Configure URL for MAPI.
1 2 3 4 5 6 |
[PS] C:\>Get-MapiVirtualDirectory -Server EX01-2016 | Set-MapiVirtualDirectory -ExternalUrl https://mail.exoip.com/mapi -InternalUrl https://mail.exoip.com/mapi [PS] C:\>Get-MapiVirtualDirectory -Server EX01-2016 | Format-List InternalUrl, ExternalUrlUrl InternalUrl : https://mail.exoip.com/mapi ExternalUrl : https://mail.exoip.com/mapi |
Configure URL for ActiveSync.
1 2 3 4 5 6 7 |
[PS] C:\>Get-ActiveSyncVirtualDirectory -Server EX01-2016 | Set-ActiveSyncVirtualDirectory -ExternalUrl https://mail.exoip.com/Microsoft-Server-ActiveSync -InternalUrl https://mail.exoip.com/Microsoft-Server-ActiveSync [PS] C:\>Get-ActiveSyncVirtualDirectory -Server EX01-2016 | Format-List InternalUrl, ExternalUrl InternalUrl : https://mail.exoip.com/Microsoft-Server-ActiveSync ExternalUrl : https://mail.exoip.com/Microsoft-Server-ActiveSync |
Configure URL for Offline Address Book (OAB).
1 2 3 4 5 6 |
[PS] C:\>Get-OabVirtualDirectory -Server EX01-2016 | Set-OabVirtualDirectory -ExternalUrl https://mail.exoip.com/OAB -InternalUrl https://mail.exoip.com/OAB [PS] C:\>Get-OabVirtualDirectory -Server EX01-2016 | Format-List InternalUrl, ExternalUrl InternalUrl : https://mail.exoip.com/OAB ExternalUrl : https://mail.exoip.com/OAB |
Configure URL for Outlook Web Access (OWA).
1 2 3 4 5 6 7 |
[PS] C:\>Get-OwaVirtualDirectory -Server EX01-2016 | Set-OwaVirtualDirectory -ExternalUrl https://mail.exoip.com/owa -InternalUrl https://mail.exoip.com/owa WARNING: You've changed the InternalURL or ExternalURL for the OWA virtual directory. Please make the same change for the ECP virtual directory in the same website. [PS] C:\>Get-OwaVirtualDirectory -Server EX01-2016 | Format-List InternalUrl, ExternalUrl InternalUrl : https://mail.exoip.com/owa ExternalUrl : https://mail.exoip.com/owa |
Configure URL for PowerShell.
1 2 3 4 5 6 |
[PS] C:\>Get-PowerShellVirtualDirectory -Server EX01-2016 | Set-PowerShellVirtualDirectory -ExternalUrl https://mail.exoip.com/powershell -InternalUrl https://mail.exoip.com/powershell [PS] C:\>Get-PowerShellVirtualDirectory -Server EX01-2016 | Format-List InternalUrl, ExternalUrl InternalUrl : https://mail.exoip.com/powershell ExternalUrl : https://mail.exoip.com/powershell |
Configure URL for Outlook Anywhere.
1 2 3 4 5 6 |
[PS] C:\>Get-OutlookAnywhere -Server EX01-2016 | Set-OutlookAnywhere -ExternalHostname mail.exoip.com -InternalHostname mail.exoip.com -ExternalClientsRequireSsl $true -InternalClientsRequireSsl $true -DefaultAuthenticationMethod NTLM [PS] C:\>Get-OutlookAnywhere -Server EX01-2016 | Format-List ExternalHostname, InternalHostname ExternalHostname : mail.exoip.com InternalHostname : mail.exoip.com |
Configuring Internal and External URL in Exchange Server 2016 is completed successfully.
This article is part of the course Install and configure Exchange Server 2016 step by step.
Conclusion
You learned how to configure Internal and External URL in Exchange 2016. Don’t forget to configure the internal DNS namespace. Did you enjoy this article? You may also like to read Disable circular logging Exchange 2016. Don’t forget to follow us and share this article.
This Post Has 0 Comments