Académique Documents
Professionnel Documents
Culture Documents
n the current article, we will review the subject of the Autodiscover response
content.
The term Autodiscover response relates to the Autodiscover information that
the Exchange CAS server provides to his Autodiscover client.
In this article, we will relate to the Exchange server Autodiscover response content
from the perspective of the three Outlook providers EXPR, EXCH and ExHTTP.
Article Series - Exchange and Autodiscover infrastructure | Table of
content
For most of us, the content of the Autodiscover response is a mystery and, most of
the time we are not able to understand the complete meaning of this mystery.
The purpose of the current article is to remove some of the fog that relates to the
content of the Autodiscover Exchange CAS server response so, we will be able to
get more information about the interesting process of Autodiscover.
In addition, to have the ability to solve the advanced problems that relate to the
communication channel and the Autodiscover process that is implemented
between the Autodiscover client and the Exchange CAS server.
Autodiscover response
Q1: Question what is the meaning of Autodiscover response?
A1: The Autodiscover response is the answer that the Exchange CAS server
provides to his Autodiscover clients.
A metaphor that we can use that will help us to understand the relationships that
exist between Exchange server, and his Autodiscover client is a metaphor of a
person that feeds his Children.
The Autodiscover client needs a well (Autodiscover information), and they address
Exchange server asking him to feed them (providing the Autodiscover response).
Q2: How does the client (Outlook) know what are the required parameters that he
needs to use for communicating with the Exchange server?
A2: The Exchange server provides all the required information to the Outlook client
as part of Autodiscover response. The Autodiscover answer, include the required
information that relates to the different communication parameters.
The main advantage of the Autodiscover method is that there is no need for using a
complex manual setting for configuring Outlook client to use the required
parameters.
Instead, Outlook uses the Autodiscover protocol for locating the required Exchange
server, and the Exchange server knows how to Pack and ship the information
using the Autodiscover response to the Autodiscover client.
The Outlook configuration setting is sent to Outlook Automatically by Exchange and
Outlook client know how to use this information for an automatic creation of an
Outlook mail profile.
Q4: What are the building block or the major parts of the Autodiscover response?
A4: The Autodiscover response includes the following parts:
1. Information about the available Exchange web service
2. Information that is needed for Outlook mail client for creating a new mail profile
3. Information about the communication parameters the Exchange dictate to the
Outlook client. For example the communication protocol, the authentication
protocol, etc.
Q5: Can you provide a detailed explanation for each of the parameters that are
included in the Exchange Autodiscover response?
A5:
The answer to this question is not so simple, and even to me, some of the content
look as a mysterious words.
There are two main reasons for the phenomenon of this mystery
1. Dynamic environment
The Exchange infrastructure is a very dynamic environment, each of the Exchange
software updates adds an additional type of services or updates to the existing
Exchange services.
This Exchange updates, are registered in the Autodiscover file and as long that the
client side such as Outlook knows how to relate to this update its OK.
2. Lack of documentation or a public information
When I sat down to write this article, I have searched for public articles that will
include a detailed description about each of the data fields that appear in the
Exchange Autodiscover response.
The result there are very few articles about the subject of the Autodiscover
response content and, regarding the Autodiscover key that Im not familiar with, I
could not find additional or meaningful information.
So what is my point?
My point is that despite the mysterious parts in the Autodiscover response file,
there are many other parts that we can understand and use in a troubleshooting
scenario.
Note many times in the Autodiscover article series, I use the term Autodiscover
file.
If we want to be more accurate, actually there is no such thing as an Autodiscover
file.The Exchange server answer described as Autodiscover response and this
response include the content which I describe as Autodiscover file.
Technically, it doesnt matter much as long as its easier for us to look at the
Exchange server response as a file.
In the following diagram, we can see an example for a piece of information that
was taken from a standard Autodiscover response.
In our example, the XML tag <EwsUrl> define the URL address of the element (the
Exchange server) that provides EWS services. The Exchange server hostname who
provides the EWS services is mail.o365info.com and, the URL address of the
Exchange web services are
https://mail.o365info.com/EWS/Exchange.asmx
The client such as Outlook, need to know or understand what the Exchange EWS
services is and know how to access the specified URL when he needs the Exchange
EWS services.
The more advanced or preferred Exchange interface is the SOAP Autodiscover and
the EWS Managed API.
The decision, which interface to use, depends on the Exchange client that
addresses the Exchange CAS server (Autodiscover Endpoint).
Exchange server can answer or provide the required information for each of this
different type of client request.
The term Exchange client can relate to the mail client such as Outlook, mobile
devices, other Exchange server or any Exchange-aware application.
An exchange mail client such as Outlook, use the SOAP Autodiscover interface or
the POX Autodiscover interface for submitting a request for the Autodiscover
information.
When mail client address Exchange CAS server asking for Autodiscover
information, using the POX Autodiscover interface, the client request is for a file
named xml
When mail client address Exchange CAS server asking for Autodiscover
information, using the SOAP Autodiscover interface, the client request is for file
named svc
Note in this article series when describing the flow in which Autodiscover client
request for Autodiscover information, we will use the autodiscover.xml naming
convention for describing the Autodiscover client request for Autodiscover
information.
In reality, the Autodiscover client request could also refer to the file named
autodiscover.svc
Additional reading
An Exchange server, know how to pack and ship the required information for
Outlook client via the Autodiscover response.
The information is divided into sections.
Some of the sections include relevant information for internal Outlook clients.
Some of the sections include relevant information for external Outlook
clients.
The method in which the Exchange server divides the information into sections for
the different type of Outlook client, meaning external versus internal Outlook
clients, described as Outlook providers.
Exchange 2013 server version supports the former type of Outlook providers,
meaning EXCH and, EXPR and in addition, a new type of Outlook provider named
ExHTTP.
Two interesting things about the Exchange 2013 server ExHTTP Outlook provider
1. Identical ExHTTP section for internal + external Outlook clients
The Exchange 2013 Autodiscover response, include two sections named ExHTTP for
external + internal Outlook client versus Exchange 2007/2010 that use the different
naming convention for Outlook providers (EXCH for internal Outlook client
and EXPR for external Outlook client)
In case that you are wondering, how the Outlook client understand if the
information is related to the internal Outlook client or the for the external Outlook
client, the answer is that the first ExHTTP section is for internal Outlook clients and
the second ExHTTP section is for external Outlook clients.
In case that you want to view the Outlook provider whom a specific Exchange
server provide, you can use the following PowerShell command
Get-OutlookProvider | Select Identity
In the following diagram, we can see that the Exchange 2013 support the former
Outlook providers in addition include a new type of Outlook provider named
ExHTTP
In the following section, we will review some of the content that is included in the
Exchange Autodiscover response.
1. EXPR section information for external Outlook clients
The XML information is based on block of information.
The section of the EXPR (that is relevant to external Outlook clients) has a beginning
and an end (number 1).
The EXPR section is built from a collection of XML tags
Each XML tag has also a starting tag and Ending tag (number 2).
The content that needs to be read by the client is positioned between the XML
tags (number3).
The Exchange server provides to the Outlook client about his host name (his
identity). Outlook client will use this name for addressing the Exchange server
(number 4).
Exchange server inform Outlook client what protocol he should use as a
communication protocol. In our scenario, the communication protocol is SSL
(number 5).
<ASUrl>https://mail.o365info.com/EWS/Exchange.asmx</ASUrl>
Note that the EXPR section is relevant to external Outlook clients. For this reason,
the information about the services that the Exchange server provide will be based
on the public identity of the Exchange server. In our scenario, the Exchange server
present himself by using the host name mail.o365info.com
In the following screenshot, we can see we can see an example of different
Exchange services that are offered to Outlook clients.
Note that Exchange provides different services using the same URL address.
For example, Exchange availability services represented by the XML tag
<ASUrl> and Exchange OOO (out of office) services, are represented by the XML
tag <OOFUrl> have identical URL address
https://mail.o365info.com/EWS/Exchange.asmx
The yellow arrows point Outlook different Exchange services that are provided by
using the same URL address (number 1).
An example of additional Exchange services could be:
OAB the OAB stand for Outlook offline address book. The XML
tag <OABUrl>, inform the Outlook client about the URL address that they need
to use when that need to access Exchange server and download a local copy
of the Outlook offline address book. In our specific scenario, the URL address
is https://mail.o365info.com/OAB/45831dde-e32e-4a86-926386ce0df67038 (number 2).
ECP the Exchange web management interface. The Autodiscover response
includes a dedicated XML tag named <EcpUrl> that tell Exchange web client
such as OWA, what is the URL address that should be used when there is a
need to access the Exchange web management. In our scenario, the URL
address is https://mail.o365info.com/ecp (number 3).
By looking at the structure of the URL address we can use a couple of observations:
3. Exchange ECP the ECP is the web address of the Exchange control panel. The
ECP is used by web mail client (OWA) for managing and accessing their personal
details.
Additional reading
The Autodiscover Service and Outlook Providers how does this stuff work?
When, if and how do you modify Outlook Providers?
Autodiscover Response