Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

ISSUE

When adding an Outlook account for Microsoft 365 with a custom domain or an Outlook.com account with a personalized email address, you receive the following error:

Something went wrong adding your email account to Outlook.

CAUSE

This issue occurs because the Autodiscover process that's used by Outlook receives an unexpected result from a third-party web server when it performs the root domain lookup. For example, Outlook may receive a result such as https://<RootDomain>/AutoDiscover/AutoDiscover.xml. 

Typically, the root domain lookup would fail in this case, and Outlook would perform an Autodiscover lookup against https://AutoDiscover.<RootDomain>/AutoDiscover/AutoDiscover.xml. However, because Outlook receives a successful Autodiscover response from the root domain lookup, Outlook tries to authenticate against the advertised protocols such as POP and IMAP, and the operation fails.

SOLUTION

Contact your web service provider or the web hosting provider of your domain website and make sure that the web server is not responding to Autodiscover requests.

WORKAROUND

To work around this issue if the web service provider or web hosting provider is unable to resolve it, take the following action:

  • Create Outlook registry keys to exclude the Last Known Good settings, HTTPS root domain, and the SRV record as detailed below. Once the registry entries are in place, restart Outlook and try to add the account or create a new profile again.

    • Use ExcludeLastKnownGoodUrl to prevent Outlook from using the last known good AutoDiscover URL
      HKEY_CURRENT_USER\Software\Microsoft\Office\x.0\Outlook\Autodiscover
      DWORD: ExcludeLastKnownGoodUrl
      Value: 1

      OR

      HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\x.0\Outlook\Autodiscover
      DWORD: ExcludeLastKnownGoodUrl
      Value: 1

    • Use ExcludeHttpsRootDomain to prevent Outlook from using the HTTPS root domain
      HKEY_CURRENT_USER\Software\Microsoft\Office\x.0\Outlook\Autodiscover
      DWORD: ExcludeHttpsRootDomain
      Value: 1

      OR

      HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\x.0\Outlook\Autodiscover
      DWORD: ExcludeHttpsRootDomain
      Value: 1

    • Use ExcludeSrvRecord to prevent Outlook from using the HTTPS root domain
      HKEY_CURRENT_USER\Software\Microsoft\Office\x.0\Outlook\Autodiscover
      DWORD: ExcludeSrvRecord
      Value: 1

      OR

      HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\x.0\Outlook\Autodiscover
      DWORD: ExcludeSrvRecord
      Value: 1

Notes: 

  • The x.0 place holder represents your version of Office (16.0 = Office 2016, Office 365 and Office 2019, 15.0 = Office 2013).

  • When the ExcludeLastKnownGoodUrl value is set to 1, Outlook does not use the last known working AutoDiscover URL.

Important: Excluding the HTTPS root domain is not a long-term solution for this issue, and we do not recommend it. This workaround is provided as immediate relief for the issue. As soon as the web service provider or web hosting provider resolves the issue, the Outlook registry key must be removed.

For more information on Autodiscover and registry settings please see Unexpected Autodiscover behavior when you have registry settings under the \Autodiscover key.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×