- Review of Stellar Phoenix Mailbox Exchange Recovery - Wed, Jul 22 2015
- Configure Exchange 2013 Internet mail flow during migration - Fri, Dec 27 2013
- Exchange 2013 DAG recovery in a stretched AD site - Part 2 - Wed, Dec 25 2013
We’ll refer to the same multi-forest environment described in Part 1 of this article series.
Let’s understand step by step how User1’s Outlook configures a mailbox using the Autodiscover service:
- User1 logs on to a computer at Green.com and fires Outlook.
- Outlook locates the Autodiscover SCP pointer record from the local account forest Active Directory and uses the pointer LDAP URL information to locate the SCP of the resource forest. SCP has information about the Autodiscover URL in the attribute ServiceBindingInformation.
- Outlook uses the Autodiscover URL to authenticate and connect to the Autodiscover service of the CAS server.Autodiscover is a virtual directory, which is created in IIS on all of the (Client Access Server) CAS machines in the organization. Below is the reference snapshot.
Autodiscover folder in IIS
- Outlook places the XML file request with the Autodiscover service.
- The Autodiscover service places the request with the Autodiscover Outlook provider.
- The Autodiscover Outlook provider determines where the request is coming from (either internal or external):
If the connection is coming from the Internet network, the Outlook RPC connection request is placed.
If the Autodiscover request is coming from an internal client, it returns details such as the user’s display name, internal and external connection settings, location of the user’s mailbox, Outlook Anywhere settings, and the URLs of OOF, OAB, and the Availability service. This information is packed into an XML file and sent back to the Outlook client. Outlook uses this XML file to find all the necessary Internal URLs for making the connection.
- Outlook talks to the CAS server at the RPC Endpoint mapper on port 135. The CAS server responds with an appropriate port number of the RPC and Address Book service.
- Outlook uses the received port number information and communicates with the RPC and Address book service configured on the CAS server to access the mailbox and address book.
- Outlook creates a profile and connects to the other URLs, such as OOF, OAB, and the Availability service from XML file, to access other Exchange server resources.
- Once the Outlook profile is created and configured, Outlook tries to contact the Autodiscover service every hour to get the latest XML file. If any URL changes are made at the CAS servers, Autodiscover returns the updated XML file and the same will be updated at the Outlook client.
- If user is coming from Internet/external network, Outlook relies on DNS to find the XML file. The XML file location is based on the users email address used in Outlook. Example, if Krishna@green.com is entered as user email address, Outlook will look for the XML file in the below order
Outlook automatic configuration from a client at the Green domain using the Autodiscover service
Autodiscover test at the Outlook client configured with multiple URLs for multiple services
I hope this article helped you understand how Autodiscover works in a multi-forest environment. It’s important to make sure that the necessary trust is configured between the two forests. All Internal URLs on the CAS servers should be configured, and a load balancer should also be configured to allow all the necessary ports with affinity. These settings would help improve not only the performance of Outlook but also the user’s overall experience.