
How the Autodiscover Service Works
When you install the Client Access server role on a computer that is running Exchange 2007, a new virtual directory named Autodiscover is created under the default Web site in Internet Information Services (IIS). This virtual directory handles Autodiscover service requests from Outlook 2007 clients and supported mobile devices in the following circumstances:
-
When a new user account is configured or updated.
-
When a user periodically checks for changes to the Exchange Web Services URLs.
-
When underlying network connection changes occur in your Exchange messaging environment.
Additionally, a new Active Directory object named the service connection point (SCP) is created when you install the Client Access server role.
The SCP object contains the authoritative list of Autodiscover service URLs for the forest. You can update the SCP object by using the Set-ClientAccessServer cmdlet. For more information about the Set-ClientAccessServer cmdlet, see Set-ClientAccessServer.
Important: |
|---|
|
Before you save the new Active Directory object, make sure that the Authenticated Users account has Read permissions for the SCP object. If users do not have the correct permissions, they will be unable to search for and read items.
|
For more information about SCP objects, see Publishing with Service Connection Points.
Figure 1 illustrates how a client connects to a Client Access server the first time from inside the internal network.
Figure 1 The Autodiscover service process for internal access.gif)
For external access, the client locates the Autodiscover service on the Internet by using the primary SMTP domain address from the user's e-mail address.
Note: |
|---|
|
You must provide a host record for the Autodiscover service for external DNS.
|
Depending on whether you have configured the Autodiscover service on a separate site, the Autodiscover service URL will be either https://<smtp-address-domain>/autodiscover/autodiscover.xml or https://autodiscover.<smtp-address-domain>/autodiscover/autodiscover.xml. Figure 2 illustrates a simple topology with a client connecting from the Internet.
Figure 2 The Autodiscover service process for external access
When the client connects to the Active Directory directory service, the client looks for the SCP object that was created during Setup. In deployments that include multiple Client Access servers, an Autodiscover SCP object is created for each Client Access server. The SCP object contains the ServiceBindingInfo attribute that has the FQDN of the Client Access server in the form of https://CAS01/autodiscover/autodiscover.xml, where CAS01 is the FQDN for the Client Access server. By using the user credentials, the Outlook 2007 client authenticates to Active Directory and searches for the Autodiscover SCP objects. After the client obtains and enumerates the instances of the Autodiscover service, the client connects to the first Client Access server in the enumerated list and obtains the profile information in the form of XML data that is needed to connect to the user's mailbox and available Microsoft Exchange features.