In this Article, We will cover how does Autodiscover works in Exchange to configure outlook profile for users without manual intermission of the user or administrator. Let’s Begin!!
What is Autodiscover?
Autodiscover is the one of the exchange feature which is introduced with exchange Server 2007. It helps users to configure the user’s Mailbox automatically.
How does It Works?
Now we will see what is going on behind the scenes of the Autodiscover. During the installation of Exchange Server, Each Exchange Server creates it’s own SCP(Service connection point) which you can see in Active Directory Sites and Services.
SCP contains the Exchange server Autodiscover information. It will help outlook clients to locate Autodiscover information to configure user mailbox profile.
In Exchange IIS, You can see autodiscover virtual directory which is available for the auto discover settings.
in Exchange PowerShell, Get-Autodiscovervirtualdirectory
When outlook client opens, it will send LDAP request to the Active directory.
1. Outlook Client sends LDAP query to Active directory to look for SCP Points.
2. Active Directory will send the SCP Connection points to the Outlook Client it will be normal XML Response from active directory.
3. outlook will sorts the connection points which received from the previous request and sends HTTPS DNS Request to Autodiscover URL HTTPS://autodiscover.windowstechpro.com/Autodiscover/autodiscover.xml. If it fails, it will send http Request to HTTP://autodiscover.windowstechpro.com/Autodiscover/autodiscover.xml. If that also Fails, it will send SRV Request to active directory. even it fails, Outlook will fail completely and thrown an error.
4. Auto discover will returns with service connection settings to the client which will be XML File with all the connection settings.
5. Outlook client will take all these configuration information to contact exchange server. Exchange server will check for the appropriate mailbox information for the configuration information provided by the outlook client.
Now we will see how it is happening for the outlook which got configured earlier in the article. fiddler is the great tool to trace http traffic. it helps to troubleshoot or trace the autodiscover issue.
1. Outlook Client sends first LDAP Query to domain. It failed
2. it sends Autodiscover request to Active directory and it checks the Certificate of the Autodiscover
You can there is no Cookies send to the browser.
3. Auto Discover sends the outlook settings and configuration information to outlook client.
It contains the authentication information and also you can see the session cookie passed to the client.
it sends all the EXCH,WEB and EXPR information to the Outlook client.
4. Outlook takes the configuration information which provided by autodiscover and contacts the Exchange Environment and configures the Mailbox and also downloads the Outlook Offline Address book(OOB) and EWS settings post the successfully outlook profile configuration.
That is how autodiscover works. We will see the troubleshooting when autodiscover fails in the upcoming articles.