How to suppress the AutoDiscover mismatch warning in Outlook 2007 and later versions

Original KB number:   2783881


When Microsoft Outlook performs an AutoDiscover operation and tries to connect to a service endpoint where the expected name isn't present on the server's Secure Sockets Layer (SSL) certificate, you may receive a warning message that resembles the following message:

The name on the security certificate is invalid or does not match the name of the site.
Do you want to proceed?

When this warning message occurs, you can click Yes to accept the warning. However, it may reappear the next time AutoDiscover runs.

You or administrators may want to suppress the warning message for a specific HTTP endpoint that is in your organization. This article contains information about how to do this.


You receive the warning when all of the following conditions are true:

  • DNS and the IIS service are installed on the same server, for example
  • A Name Server (NS) record is created for the server.
  • The IIS service is configured to use Secure Sockets Layer (SSL).

Outlook uses the domain name part of the user's SMTP address to query DNS. In this example, the domain name is Outlook resolves to an NS record for the DNS server. On the DNS server, IIS is configured to use an SSL certificate. The SSL certificate subject is However, Outlook tries to connect to The certificate name mismatch causes Outlook to present the warning described earlier.

Workaround 1: Reissue certificate that includes domain name as Subject Alternative Name

Reissue a certificate that includes the domain name ( as the Subject Alternative Name. This solution may be appropriate if you can't implement client-side registry keys, or have only a limited number of domains.

Workaround 2: Don't install IIS service and DNS on the same server

Install the IIS and DNS roles on separate servers.

Workaround 3: Don't install or bind SSL certificate on DNS server running IIS

If the IIS site doesn't require SSL, you can remove the certificate. Or, you can unbind TCP 443 (SSL port) from the Default Web Site.

Workaround 4: Configure Outlook to allow connection to mismatched domain name


This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.

To configure Outlook to ignore the name mismatch and connect to a specific HTTP endpoint, you can set or deploy a registry value. To do this, follow these steps:

  1. Close Outlook.

  2. Start Registry Editor. To do this, use one of the following procedures, as appropriate for your version of Windows.

    • Windows 10 and Windows 8: Press Windows Key + R to open a Run dialog box. Type regedit.exe and then press OK.
    • Windows 7: Click Start, type regedit.exe in the search box, and then press Enter.
  3. Locate and then click to select the following registry subkey:



    You can also use the following registry subkey:

    Where xx is 12.0 for Outlook 2007, 14.0 for Outlook 2010, 15.0 for Outlook 2013, and 16.0 for Outlook 2016, Outlook for Microsoft 365 and Outlook 2019

  4. Click the Edit menu, point to New, and then click String Value.

  5. Type the name of the HTTPS server to which AutoDiscover can be connected without warning for the user, and then press ENTER. For example, to allow a connection to, the first String Value (REG_SZ) name would be as follows:

  6. You don't have to add text to the Value data box. The Data column should remain empty for the string values that you create.

  7. To add more HTTPS servers to which AutoDiscover can connect without displaying a warning, repeat steps 4 and 5 for each server.

  8. On the File menu, click Exit to exit Registry Editor.


Overview of the Autodiscover Service