Outlook can't set up a new profile by using Exchange Autodiscover for an Exchange Online mailbox in Office 365

When you try to set up a new mail account for Office 365 by using the Add New Account Wizard in Microsoft Outlook, your Outlook profile isn't automatically set up. Additionally, you receive the following error message when Outlook tries to set up the server settings for your profile:
An encrypted connection to your mail services is not available
When you test by using the Microsoft Remote Connectivity Analyzer, the following error may be returned: 
Autodiscover cannot process the given e-mail address. Only mailboxes and contacts are allowed.
This issue occurs for one of the following reasons:
  • The wrong email address was entered on the Auto Account Setup page of the Add New Account Wizard in Outlook.
  • The required updates for Outlook to automatically connect to Exchange Online aren't installed for the version of Outlook that you're running.
  • The Autodiscover CNAME record for your domain doesn’t exist or isn’t set up correctly.
  • In organizations that use Active Directory synchronization, the mail, mailNickname, displayName, and proxyAddresses attributes are not set up correctly for the synced user in the on-premises Active Directory.
Note This article discusses Outlook 2013, Outlook 2010, Outlook 2007, and Exchange Online. For help in connecting to Exchange Online from a mobile device, see Set up and use Office 365 on your phone or tablet. For help in connecting Outlook to a third-party service, contact your third-party mail provider.

Recommended method

Method 1: Run Office 365 Support and Recovery Assistant

Install and run Microsoft Office 365 Support and Recovery Assistant. For more information, see Fix Outlook account problems in Office 365.

Additional methods

If you're using a custom domain

If Method 1 doesn't resolve the issue, and you're using a custom domain with Office 365, use the following methods in the order in which they're listed. If the first method doesn't resolve the issue, go to the next one.

Method 2: Run Office 365 Desktop Setup

First, make sure that you enter the correct email address and password on the Auto Account Setup page of the Add New Account Wizard in Outlook.

If you're using Outlook 2010 or an earlier version, run Office 365 Desktop, and make sure that you install all the required updates. For more information about Office 365 Desktop, go to Set up my current Office desktop programs to work with Office 365 for business.

For more information about how to set up Outlook for Office 365, go to the following Microsoft websites, and then click the link that matches the version of Outlook that you're running: Note If this method doesn’t resolve the issue, go to Method 2.

Method 3: Make sure that the Autodiscover CNAME record is set up correctly

The Autodiscover CNAME record must exist and must be set up correctly. We strongly recommend that you set up Exchange Autodiscover when you are using Outlook to connect to Exchange Online mailboxes. Setting up Autodiscover and other related DNS records is required for Outlook connectivity in Exchange Online. Administrators can use the Domain Troubleshooting Wizard in Office 365 or Microsoft Remote Connectivity Analyzer to confirm that the records are set up correctly.
Use the Domain Troubleshooting Wizard in Office 365
To use the Domain Troubleshooting Wizard in Office 365, follow these steps.
  1. Sign in to the Office 365 portal (https://portal.office.com) by using an administrator account.
  2. Click Admin to open the Office 365 admin center.
  3. In the left navigation pane, click Domains, select the domain name that's used by the affected user, and then click Troubleshoot to start the wizard.
Use Microsoft Remote Connectivity Analyzer
To use Remote Connectivity Analyzer to test whether Exchange Autodiscover is working correctly, follow these steps:
  1. In a web browser, browse to the Microsoft Remote Connectivity Analyzer tool at the following website:
  2. Complete all the required fields on the form, and then click Perform Test.

    Screen shot of enter test credentials
  3. When the test is finished, determine whether it's successful. If the test is successful, Autodiscover is working correctly. If the test isn't successful, use the information that's provided to troubleshoot the issue.

    Note If your organization is in a hybrid confirmation, your Exchange Autodiscover records may still point to an on-premises Exchange server. For more information, go to the following Microsoft website:

Method 4: Make sure that the user's attributes in Active Directory are set correctly

Warning This procedure requires Active Directory Interfaces Editor (ADSI Edit). Using ADSI Edit incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems that result from the incorrect use of ADSI Edit can be resolved. Use ADSI Edit at your own risk.

Use ADSI Edit (or a similar tool for editing Active Directory) to determine whether the following attributes are set correctly for the user.
displayNameTed Bremer
proxyAddressesSMTP: ted@contoso.com X400:c=us;a= ;p=First Organization;o=Exchange;s=Bremer;g=Ted
Common issues occur when a value is not set for one or more of these attributes.

After the correct values are set for these attributes, force directory synchronization to occur, and then try to set up the user's email account in Outlook.

If you're not using a custom domain

Method 2: Use the Add New Account Wizard in Outlook

If Method 1 doesn't resolve the issue, and you’re not using a custom domain together with Office 365, you can use the Add New Account Wizard in Outlook to set up your Outlook profile by using the default "onmicrosoft.com"-based email address that’s associated with users’ Exchange Online mailboxes when you signed up for Office 365. When you use the Add New Account Wizard to set up a new mail profile, you specify your default Office 365 email address in the form of <user>@<domain>.onmicrosoft.com (for example, kim@contoso.onmicrosoft.com) and your Office 365 password.

This method is supported and works for customers who may not plan to have their own vanity or custom domain. This method also supports Autodiscover. If your mailbox server location changes, Outlook will be updated accordingly with the new location of your mailbox server.
Microsoft doesn't support manually setting up a profile in Outlook for connectivity to mailboxes in Exchange Online in Office 365. However, we can help you complete other tasks, such as setting up DNS and Autodiscover records (as discussed in Method 2). This lets you set up your account through the supported methods.

The link below will navigate your web browser to a guided tutorial which will help you solve your problem

Start guided walkthrough.
For more information, see the following Microsoft Knowledge Base articles:
  • 977968 Users cannot use Outlook Anywhere to open a shared mailbox that was moved to Exchange Server 2010
  • 2555008 How to troubleshoot free/busy issues in a hybrid deployment of on-premises Exchange Server and Exchange Online in Office 365
Still need help? Go to the Office 365 Community website.

Article ID: 2404385 - Last Review: 09/24/2015 23:42:00 - Revision: 61.0

  • Microsoft Exchange Online
  • o365 o365a kbgraphxlink o365e o365p o365m o365022013 gwt guided walk through kbtshoot kbgraphic KB2404385