How does Autodiscover Service works in Exchange

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.

1

 

2345

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.

15SCP 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.

16

in Exchange PowerShell, Get-Autodiscovervirtualdirectory

17

When outlook client opens, it will send LDAP request to the Active directory.

autodiscover

 

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

6

2. it sends Autodiscover request to Active directory and it checks the Certificate of the Autodiscover

7

You can there is no Cookies send to the browser.

8

3. Auto Discover sends the outlook settings and configuration information to outlook client.

9 It contains the authentication information and also you can see the session cookie passed to the client.

10

it sends all the EXCH,WEB and EXPR information to the Outlook client.

12

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.

13

That is how autodiscover works. We will see the troubleshooting when autodiscover fails in the upcoming articles.

Author Bio

Radhakrishnan Govindan

12 thoughts on “How does Autodiscover Service works in Exchange”

  1. Hi RK, can you share the path where we can see the SCP created in active directory ? if its big infra SCP will create all DC server ?

  2. Just what I needed — a diagram and everything! Thank you so much for your careful explanation “for dummies” like me, a tech writer tasked with writing something technical that involves Autodiscover but with no guidance about said service. You nailed it.

  3. Hi Govindan,

    i have one query, while installing exchange given domain details are “mail.conteso.com” and local domain is (AD Installed) test.com it was working fine after some time i have change my email -id to in.busy.eu, what and all changes needs to be done to work autodiscover

Leave a Reply

Your email address will not be published. Required fields are marked *