Revision as of 16:03, 4 August 2015 by Jorge de la Cruz (talk | contribs) (Jorge de la Cruz Mingo moved page AutoDiscover to Autodiscover)

Autodiscover for Outlook, Exchange Activesync and Exchange Web Services

   KB 22222        Last updated on 2015-08-4  

(0 votes)

Autodiscover uses the Network Edition features, EAS and EWS, Exchange Activesync and Exchange Web Services, that allows any Mail Client that supports Autodiscover to configure the appropriate Server settings for Communication so you don’t have to input all the configuration manually. It’s very useful for IT Administrators and for all Users. Autodiscover also uses SSL certificates, and Microsoft since a few years ago has started recommending the use of Public domain names for Active Directory domains, to avoid the use of non-public TLD like domain.local.

How does Autodiscovery work?

Outlook or the Mail App, has a few ways to look for domain information when configuring itself based on the users email address.

Example using just the DNS SRV record in Zimbra

Lets say I want to set up Outlook as, but my site does not have the required Autodiscovery XML files set up. I enter that email address in Outlook, now Outlook do the following things to get its information:

Creating the proper DNS entries

To set the proper DNS, you should have 2 different DNS entries.

  • The first one is an CNAME DNS entry pointing to the proper Zimbra FQDN, in this example to Please be aware that the SSL Certificate needs to have the inside using a Wildcard Certificate or a SAN for the record, in other case Autodiscover will fail in this step:

  • The second DNS record that we need to have is the SRV one, with the Zimbra FQDN, the service, the protocol, the priority, the weight, the port and the hostname. For example, using Bind you will need to add a DNS entry like the next one:

Note: You can play with the priority and weight of the DNS record for an Autodiscovery HA based in DNS.

Check the Autodiscover using the DNS

You can check if you have the proper DNS configuration using the regular DNS tools provided by your Operating System. This doesn't needs necessary means that your Autodiscover works in the Zimbra server, but at least you can see if you have properly configured your DNS Server.

In Microsoft Windows

You can test it in Microsoft Windows using nslookup, open a CMD and introduce the next command to test your Autodiscover DNS record:

nslookup -q=srv

In Linux/OS X

You can test it in Linux or OS X using dig, open a terminal/console and introduce the next command to test your Autodiscover DNS record:

dig SRV

Check the Autodiscover using the Official Online Microsoft Tool

Microsoft have an Online tool where we can test the Autodiscovery, if needed, please go to Then you will see the next Windows, select the option called Microsoft Office Outlook Connectivity Tests > Outlook Autodiscover


In the next Window, use an account that can do Login into your Zimbra server to test properly the Autodiscover. Note: Please use a test account that you can delete later, or one that you will change the password after do this test. Important note: In my first test using the Test Connectivity from Microsoft I've received an error because I didn't enabled the EWS funcionality to the account that I want to test. Enabling the EWS Feature in the COS did the trick to work.


After a few seconds you will be able to see the results, in this case everything seems to be OK:


If we click Expand All, we can see the steps that Autodiscover tried to work, as it's explained before, the only step that works here is the DNS one because:

  • First, in I don't have the Zimbra Server, I have my regular Website.
  • Second, because doesn't have the proper SSL certificate as I have a SSL certificate that cover for example.
  • Third, finally the DNS record is valid and Outlook can use this method to get the configuration.

Configure the Mail Clients

Now that you have your Autodiscover properly configured you can follow the next Articles to configure your Mail clients:

Identified Support/Known Issues

Known issues include the following bugs:

  • Bug 85262 - Admin: Add Appendix to Admin Guide which documents the various autodiscovery settings
Verified Against: ZCS 8.6, 8.5 Date Created: 08/04/2015
Article ID: Date Modified: 2015-08-04

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Wiki/KB reviewed by Jorge SME2 Copyeditor Last edit by Jorge de la Cruz
Jump to: navigation, search