Problem:
You get the following message in Outlook:
Solution:
When you installed the SSL, certain parameters weren’t setup properly.
For this solution we will use mail.mitconsulting.ca as the external CName or A record that points to your Exchange environment. Please substitute your address for mail.mitconsulting.ca. Replace EXCHANGE-MAIL with your server name.
- Load Exchange Management Shell
- Run Get-ClientAccessServer | fl
- The results should show you (under AutoDiscoverServiceInternalUri) something along the lines of https://site/Autodiscover/Autodiscover.xml
- This is wrong, site should be replaced with mail.mitconsulting.ca
- Replace the items in red with your info
- Run the following command: Set-ClientAccessServer -Identity EXCHANGE-MAIL -AutodiscoverServiceInternalUri https://mail.mitconsulting.ca/autodiscover/autodiscover.xml
- Run Get-WebServicesVirtualDirectory | fl
- The results should show you (under InternalUrl and ExternalURL) something along the lines of https://site/EWS/Exchange.asmx
- This is wrong, site should be replaced with mail.mitconsulting.ca
- Replace the items in red with your info
- Run the following command: Set-WebServicesVirtualDirectory -Identity “EXCHANGE-MAIL\EWS (Default Web Site)” –InternalUrl https://mail.mitconsulting.ca/ews/exchange.asmx
- Run the following command: Set-WebServicesVirtualDirectory -Identity “EXCHANGE-MAIL\EWS (Default Web Site)” –ExternalUrl https://mail.mitconsulting.ca/ews/exchange.asmx
- If you get an error message, odds are your Default Web Site name is wrong
- When you run Step 3, the second line (under Name), gives you the correct info.
- In my case it says, EWS (SBS Web Applications)
- Run Get-OABVirtualDirectory | fl
- The results should show you (under InternalUrl and ExternalURL) something along the lines of https://site/OAB
- This is wrong, site should be replaced with mail.mitconsulting.ca
- Replace the items in red with your info
- Run the following command: Set-OABVirtualDirectory -Identity “EXCHANGE-MAIL\OAB (Default Web Site)” –InternalURL https://mail.mitconsulting.ca/OAB
- Run the following command: Set-OABVirtualDirectory -Identity “EXCHANGE-MAIL\OAB (Default Web Site)” –ExternalURL https://mail.mitconsulting.ca/OAB
- If you get an error message, odds are your Default Web Site name is wrong
- When you run Step 4, the second line (under Name), gives you the correct info.
- In my case it says, OAB (SBS Web Applications)
- Exchange 2010 and SBS 2011
- Run Get-ActiveSyncVirtualDirectory | fl
- The results should show you (under InternalUrl and ExternalURL) something along the lines of https://site/Microsoft-Server-ActiveSync
- This is wrong, site should be replaced with mail.mitconsulting.ca
- Replace the items in red with your info
- Run the following command: Set-ActiveSyncVirtualDirectory -Identity “EXCHANGE-MAIL\Microsoft-Server-ActiveSync (Default Web Site)” -InternalURL https://mail.mitconsulting.ca/Microsoft-Server-Activesync
- Run the following command: Set-ActiveSyncVirtualDirectory -Identity “EXCHANGE-MAIL\Microsoft-Server-ActiveSync (Default Web Site)” -ExternalURL https://mail.mitconsulting.ca/Microsoft-Server-Activesync
- If you get an error message, odds are your Default Web Site name is wrong
- When you run Step 4, the second line (under Name), gives you the correct info.
- In my case it says, Microsoft-Server-ActiveSync (SBS Web Applications)
- Exchange 2007
- Run Get-UMVirtualDirectory | fl
- The results should show you (under InternalUrl and ExternalURL) something along the lines of https://site/UnifiedMessaging/Service.asmx
- This is wrong, site should be replaced with mail.mitconsulting.ca
- Replace the items in red with your info
- Run the following command: Set-UMVirtualDirectory -Identity “EXCHANGE-MAIL\unifiedmessaging (Default Web Site)” -InternalUrl https://mail.mitconsulting.ca/unifiedmessaging/service.asmx
- Run the following command: Set-UMVirtualDirectory -Identity “EXCHANGE-MAIL\unifiedmessaging (Default Web Site)” -ExternalUrl https://mail.mitconsulting.ca/unifiedmessaging/service.asmx
- If you get an error message, odds are your Default Web Site name is wrong
- When you run Step 4, the second line (under Name), gives you the correct info.
- In my case it says, UnifiedMessaging (SBS Web Applications)
- Then open the IIS Manager Expand Application Pools > MSExchangeAutodiscoverAppPool > Right Click > Recycle.