Monday, May 16, 2011

Outlook proxy settings changing to the server FQDN.


One day i received a call from one of our customer saying that their Outlookanywhere external hostname has been automatically changed to the internal server fqdn (This is a Exchange 2007 CCR environment). If no one has changed the configured settings how come it can happened. Its so weird.

Normally if you have enabled outlookanywhere & RPC over HTTP on the server, placed an external hostname which can resolve from the internet, installed a valid cert and also if you have open port 443 definitely it should work, all these thing were done and it has worked fine for years.
When you change the settings to the external url and after restarting the outlook it automatically changes to the internal server name, after searching for about 2 hours i found the culprit. Here what you can do to solve it.
Some have said that you have to use group policy to force correct setting but that didnot help me.


Get EMS and Run : Get-OutlookProvider -Identity EXPR | FL

check values : CertPrincipalName, Server
If CertPrincipalName is set, it will populate "Only connect to proxy servers that have this principal name in their certificate" field in Outlook, and override the deault value.

To set it run-

Set-OutlookProvider -id EXPR -Server "[servername]" -CertPrincipalName "msstd:server.mydomain.com"
Make sure server.domain.com matches principal name in your certificate.
Also run the following to reset the server value.
Set-OutlookProvider -id EXPR -server $null
chech again with : Get-OutlookProvider -Identity EXPR | FL