IT tutorials
 
Technology
 

Exchange Server 2010 : Services Provided by the Client Access Server (part 4) - Outlook Anywhere , The Autodiscover Service

1/19/2014 8:11:34 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

7. Outlook Anywhere

As in Exchange Server 2007, Outlook Anywhere provides users with access to their email in Outlook over the Internet. Users who are not accessing their email from inside the domain typically cannot use remote procedure calls (RPC) to access to their mailbox, because RPC uses a wide port range that most firewalls don't allow. Also, RPC performs poorly in high latency scenarios.

Therefore, the Outlook Anywhere service takes the RPCs used by Outlook and wraps them in HTTPS. HTTPS is a commonly used protocol across the Internet, so using HTTPS instead of RPCs allows users to connect to their mailbox. The HTTPS session is terminated at the RPC proxy server (typically a Client Access server) and the CAS then uses standard RPCs to access the mailbox on the behalf of the user.

7.1. Enabling Outlook Anywhere

Outlook Anywhere is not enabled by default when you install the Client Access server role. You will need to manually enable Outlook Anywhere to take advantage of its functionality. Before you do, ensure that the RPC over HTTP Proxy feature is installed first. If you used the Exchange-CAS.xml or Exchange-Typical.xml Server Manager installation package to prepare your server, this feature was installed during that process. If not, you can use the following command to install the RPC over HTTP Proxy feature:

ServerManagerCMD -i RPC-over-HTTP-Proxy

After the RPC over HTTP Proxy feature is installed, you can enable Outlook Anywhere in the EMC under the Server Configuration => Client Access node. You will need to select the CAS and then choose Enable Outlook Anywhere from the Actions menu.

You can also enable Outlook Anywhere with the Enable-OutlookAnywhere command in the EMS. The following example enables Outlook Anywhere with NTLM authentication:

Enable-OutlookAnywhere -Server CAS-1 -ClientAuthenticationMethod NTLM 

-ExternalHostname mail.contoso.com -SSLOffloading $False

7.2. SSL Offloading

By default, Outlook Anywhere requires SSL connections. Multiple SSL connections by several clients can sometimes cause a performance bottleneck on servers. With Outlook Anywhere, you have the option of offloading the SSL processing to another server. When you do this, the client establishes a secure SSL connection with the server that you offloaded SSL to. The connection from the server doing the SSL offloading to the CAS is unencrypted.

Outlook Anywhere with Self-Signed Certificates

The default self-signed certificate created by Client Access servers will not work when Outlook clients attempt to use Outlook Anywhere. Instead, you will need to issue a valid certificate to your CAS that is trusted by the client computers.


8. The Autodiscover Service

The Autodiscover service was introduced in Exchange Server 2007. This valuable service, which runs on Client Access servers, provides automatic configuration of Outlook profiles for Outlook 2007 and newer versions. This provides a way to get users up and running in an easy manner on a new machine without using scripts, running Custom Installation wizard installations, or relying on users to set up their own account (which is always dangerous!). When setting up an Outlook profile while connected to the domain, users only have to click the Next button a few times because Outlook picks up all the relevant information from the account the user logged in with. If not connected to the domain, users are simply asked to enter their email address and password. (Note that users must specify their primary address; otherwise, Autodiscover may not work.)

Aside from the profile configuration, Autodiscover also provides Outlook with the information needed for downloading the offline address book, connecting to Outlook Anywhere, and even for connecting to Exchange Web Services which, among other things, provides calendar availability information.

Windows Mobile Support for Autodiscover

Originally, Windows Mobile 6 was planned to support Autodiscover for configuring devices for Exchange ActiveSync. Unfortunately, this feature didn't make it into Windows Mobile 6, but it arrived in Windows Mobile 6.1 and continues to exist in Windows Mobile 6.5. It's interesting to note that Windows Mobile devices use Autodiscover differently than Outlook does. While Outlook clients continuously use Autodiscover to ensure that the client is up to date, Windows Mobile only uses it on the initial configuration of the profile.


Autodiscover works in two ways, depending on whether the client is on the internal LAN and a member of the forest where the mailbox is held, or external to the LAN.

8.1. Internal Autodiscover

When a computer is connected to the Active Directory domain, the Autodiscover process is different than when the computer is not currently connected to the domain. The method used when Autodiscover is used on a client within the LAN is described here and shown in Figure 4:

  1. When Outlook is launched, it checks to see if an Outlook profile exists. If there is none, it automatically fills in the user's email address and password from Active Directory.

  2. Outlook then searches for a Service Connection Point (SCP) object in Active Directory for Autodiscover. An SCP is a special object that gives computers a mechanism for advertising an application or service that it is hosting. The location of the SCP for Autodiscover is shown in Figure 5.

    SCP objects in Active Directory aren't only used for Exchange. Other applications can use SCPs as well to publish information about a service that it provides. For Exchange, the information published in the Autodiscover SCP gives Outlook the FQDN of the servers hosting the Autodiscover service (the Client Access servers).

    Figure 4. The Autodiscover process on the LAN
    Figure 5. The location of the SCP as seen in Active Directory
  3. Outlook queries the CAS using the FQDN that it got from the SCP.

  4. The server prepares an XML file specifically for the user.

  5. The Autodiscover XML file is downloaded by the Outlook client, which applies the settings and connects the user to his or her mailbox.

8.2. External Autodiscover

If the user is outside the Active Directory forest (for example, on a machine that is not domain joined) or on a machine that is outside the LAN, the internal Autodiscover process is not used. If the client cannot contact the Active Directory domain, then it can't read the SCP. So the Outlook client needs another way to find out where the Autodiscover service is running. This is accomplished using the following process, which is also demonstrated in Figure 6.

Figure 6. The process that Autodiscover uses when the computer cannot contact Active Directory

To find a Client Access server that can provide Autodiscover functions externally, the Outlook client will try to connect to one of these two URLs (where the domain is somorita.com):

https://somorita.com/autodiscover/autodiscover.xml

https://autodiscover.somorita.com/autodiscover/autodiscover.xml

For more information on this process, see the following URL:

http://technet.microsoft.com/en-us/library/bb332063.aspx#OutlookAndAD

The following steps are used when Outlook uses Autodiscover to configure the Outlook profile outside the LAN:

  1. Outlook prompts the user to enter his name, password, and email address.

  2. Outlook extracts the FQDN from the email address.

  3. Outlook performs a DNS query for the namespace.

  4. Outlook 2007 clients without a service pack will attempt to connect to https://domain.com/autodiscover/autodiscover.xml. If this fails, an attempt is made to connect to https://autodiscover.domain.com/autodiscover/autodiscover.xml.

  5. If the previous two attempts fail, Outlook attempts to connect using an HTTP redirect. Therefore, for the Autodiscover process to work correctly in Outlook with no service pack, one of the URLs must be resolvable in DNS.

  6. If using Outlook 2007 SP1 or later, an additional DNS query will be performed, looking for a service locator (SRV) record that advertises Autodiscover. If this record is found, the client uses the hostname in the record to make another connection attempt to the Autodiscover service.

  7. Once the connection has been made, the process continues in the same way as for internal connections. Exchange creates a specific XML file containing the relevant details for the user based on the credentials entered in Step 1.

  8. Outlook downloads the Autodiscover XML file and uses it to build the profile.

8.3. The Autodiscover XML

Now that we've discussed how Autodiscover works, let's take a look at how we can tune it. First, here's an example of the XML that is passed to the client:

<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/
responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/
responseschema/2006a">
<User>
<DisplayName>Nathan Winters</DisplayName>
<LegacyDN>/o=OEXCH015/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)
/cn=Recipients/cn=nathan_nwinters</LegacyDN>
<DeploymentId>996755d4-d79d-4cf9-94ba-fb91ec8877f8</DeploymentId>
</User>



<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>EXCH</Type>
<Server>EXVMBX015-3.exch015.msoutlookonline.net</Server>
<ServerDN>/o=OEXCH015/ou=Exchange Administrative Group
(FYDIBOHF23SPDLT)
/cn=Configuration/cn=Servers/cn=EXVMBX015-3</ServerDN>
<ServerVersion>720082AD</ServerVersion>
<MdbDN>/o=OEXCH015/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)
/cn=Configuration/cn=Servers/cn=EXVMBX015-3/cn=Microsoft Private MDB</MdbDN>
<ASUrl>https://owa015.msoutlookonline.net/EWS/Exchange.asmx</ASUrl>
<OOFUrl>https://owa015.msoutlookonline.net/EWS/Exchange.asmx</OOFUrl>
<UMUrl>https://owa015.msoutlookonline.net/UnifiedMessaging/
Service.asmx</UMUrl>
<OABUrl>Public Folder</OABUrl>
</Protocol>
<Protocol>
<Type>EXPR</Type>
<Server>owa015.msoutlookonline.net</Server>
<SSL>On</SSL>
<AuthPackage>Basic</AuthPackage>
<OABUrl>Public Folder</OABUrl>
</Protocol>
<Protocol>
<Type>WEB</Type>
<External>
<OWAUrl AuthenticationMethod="Fba">https://owa015.msoutlookonline.net/owa
</OWAUrl>
<Internal>
<OWAUrl AuthenticationMethod="Basic, Fba">
https://owa015.msoutlookonline.net/owa</OWAUrl>
<Protocol>
<Type>EXCH</Type>
<ASUrl>https://owa015.msoutlookonline.net/EWS/Exchange.asmx</ASUrl>
</Protocol>
</Internal>
</External>
</Protocol>
</Account>
</Response></Autodiscover>


As you can see, a fair amount of information is included, in particular the URLs for the main services. So where does this information come from and how is it set?

When the CAS is installed, a virtual directory called Autodiscover is created in the IIS default website. It is from here that the configuration file is downloaded by the Outlook client. To determine which URLs to include in the XML file, Autodiscover uses the InternalURL and ExternalURL parameters from the various virtual directories.

 
Others
 
- Exchange Server 2010 : Services Provided by the Client Access Server (part 3) - Exchange Control Panel
- Exchange Server 2010 : Services Provided by the Client Access Server (part 2) - Remote PowerShell, Outlook Web App
- Exchange Server 2010 : Services Provided by the Client Access Server (part 1) - RPC Client Access, Address Book Service, Mailbox Replication
- Exchange Server 2010 : Requirements for the Client Access Server Role
- Sharepoint 2010 : Connecting to BCS Data Using SharePoint Designer (part 4) - External Data Picker Control
- Sharepoint 2010 : Connecting to BCS Data Using SharePoint Designer (part 3) - Create an External Content Type - Add a Limit Filter
- Sharepoint 2010 : Connecting to BCS Data Using SharePoint Designer (part 2) - Create an External Content Type - Define SpecificFinder Operation
- Sharepoint 2010 : Connecting to BCS Data Using SharePoint Designer (part 1) - Associations, Stereotypes
- Sharepoint 2010 : Business Connectivity Services - Business Data Catalog in MOSS 2007
- Sharepoint 2013 : Creating List Views - Specify How Folders Will Be Used in a View
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us