How to Fix External Autodiscover Failures in Exchange Hybrid
Question details
Users need to resolve external Autodiscover failures preventing Outlook from configuring migrated Microsoft 365 mailboxes in an Exchange Hybrid setup.

- Product
- Microsoft Exchange / Outlook
- Device & OS
- not provided
- Scenario
- Configuring migrated Microsoft 365 mailboxes using Outlook or Outlook mobile within an Exchange Hybrid environment.
- Observed behavior
- Outlook configuration fails because external Autodiscover returns invalid HTML, HTTP 404, or HTTP 401 response codes instead of the expected XML data.
Ensure you have administrative access to your Exchange server, DNS management console, and firewall settings before verifying routing and authentication configurations.
Verify Autodiscover DNS, Certificates, and Virtual Directories
Identify and resolve configuration errors in your DNS records, SSL certificates, or Exchange virtual directories that cause HTTP 404 or 401 errors.
Autodiscover relies heavily on correct DNS routing and valid SSL certificates. Misconfigurations in the IIS virtual directories or proxy firewalls are the most common causes of Outlook setup failures for migrated hybrid mailboxes.
Log in to your DNS hosting provider and ensure the Autodiscover CNAME or A record correctly points to your on-premises Exchange server or reverse proxy endpoint.
Ensure the SSL certificate bound to the IIS default website includes the Autodiscover namespace (e.g., autodiscover.yourdomain.com) and is fully valid and trusted.
Open the Exchange Management Shell and use the Get-AutodiscoverVirtualDirectory cmdlet to verify the InternalUrl, ExternalUrl, and authentication settings for the directory.
Check your reverse proxy and firewall logs to ensure they are not blocking or altering Autodiscover traffic, which frequently results in invalid HTML responses.

Consult the Microsoft Q&A Exchange Hybrid Forum
For complex hybrid authentication and routing issues, getting help from specialized Microsoft Exchange engineers is highly recommended.
Experience a Seamless Office Alternative with WPS Office
While resolving complex Exchange server and Outlook issues, you can simplify your daily document tasks. WPS Office is a highly compatible, free, and lightweight alternative to Microsoft Office, offering an intuitive interface for Writer, Spreadsheets, Presentations, and PDFs.

Frequently Asked Questions
Why am I getting an HTTP 401 error during Outlook Autodiscover?
An HTTP 401 error typically indicates an authentication failure. This can happen if the authentication methods on the Autodiscover virtual directory in Exchange are misconfigured or if a firewall or reverse proxy is stripping the necessary authentication headers.
How do I test my external Autodiscover configuration?
You can thoroughly test your setup using the Microsoft Remote Connectivity Analyzer (ExRCA). Navigate to the Exchange Server tab and run the Outlook Autodiscover test to view a step-by-step breakdown of the connection attempt.
What causes Autodiscover to return invalid HTML?
Invalid HTML responses usually occur when a firewall, reverse proxy, or captive portal intercepts the Autodiscover request and returns a block page, login portal, or error screen instead of the expected XML payload from the Exchange server.
Can a missing DNS record cause an HTTP 404 error in Autodiscover?
A missing DNS record usually results in a DNS resolution timeout or failure rather than a 404. An HTTP 404 error means the web server was successfully reached, but the specific Autodiscover endpoint path was not found, often pointing to incorrect virtual directory configurations or IIS routing issues.




