Exchange Server 2010 Autodiscover: How It Works
Autodiscover is the service that lets Outlook 2007/2010 and Exchange ActiveSync devices configure themselves with just an email address and password. It also gives Outlook the URLs for Exchange Web Services, the Offline Address Book and Out of Office.
What Autodiscover returns
The Client Access server responds with an XML document containing the user's mailbox server, Outlook Anywhere settings and service URLs (EWS, OAB, ECP, Unified Messaging). Outlook refreshes this information periodically, so URL changes reach clients automatically.
Domain-joined clients: the SCP
Inside the network, Outlook first queries Active Directory for Service Connection Point (SCP) objects. Every Client Access server registers one, containing its Autodiscover URL (AutoDiscoverServiceInternalUri). Outlook picks an SCP, preferring servers in its own AD site, and sends the request there.
Set the internal URL with:
Set-ClientAccessServer -Identity CAS01 -AutoDiscoverServiceInternalUri https://autodiscover.contoso.com/Autodiscover/Autodiscover.xml
External or non-domain clients: DNS
When no SCP is available, Outlook builds URLs from the email domain and tries them in order:
https://contoso.com/autodiscover/autodiscover.xmlhttps://autodiscover.contoso.com/autodiscover/autodiscover.xml- an HTTP redirect from
http://autodiscover.contoso.com/autodiscover/autodiscover.xml - a DNS SRV record
_autodiscover._tcp.contoso.compointing to the right host.
Publishing autodiscover.contoso.com in public DNS and including it on the certificate is the usual approach.
Certificates
Autodiscover uses HTTPS. The Client Access certificate must include the names clients use: mail.contoso.com, autodiscover.contoso.com and the internal server FQDN if used. Name mismatches cause Outlook security warnings.
Testing
- In Outlook, hold Ctrl, right-click the Outlook icon in the notification area and choose Test E-mail AutoConfiguration.
- From the server:
Test-OutlookWebServices -Identity user@contoso.com. - Externally: the Microsoft Remote Connectivity Analyzer.
Today's equivalent
Exchange 2013 and later and Exchange Online use the same Autodiscover logic, with Autodiscover v2 (JSON) for modern clients. In Microsoft 365 the autodiscover CNAME points to autodiscover.outlook.com.