The Autodiscover subdomain (autodiscover.yourdomain.com) is used by email clients (such as Outlook, Thunderbird, and mobile apps) to automatically configure email settings without the need to manually enter server details.
The Autodiscover service is essential for minimizing user configuration steps and provides clients with access to Exchange features[citation:1]. When setting up a client application like Outlook for the first time, it configures itself using the Autodiscover service[citation:1].
If you are using Microsoft 365 (Office 365) or Exchange, configure this CNAME record in your DNS settings. This record allows Outlook to easily connect to the Exchange Online service using the Autodiscover service[citation:5].
| Record Type | Host (Name) | Value (Target) | TTL |
|---|---|---|---|
| CNAME | autodiscover.yourdomain.com | autodiscover.outlook.com | 3600 |
Steps to add in DNS:
This allows Outlook and Microsoft 365 to automatically detect email settings.
If you are not using Microsoft 365 and have a custom mail server (e.g., cPanel, Plesk, Postfix, Exim, or Zimbra), configure an A record.
| Record Type | Host (Name) | Value (IP Address) | TTL |
|---|---|---|---|
| A | autodiscover.yourdomain.com | Your-Mail-Server-IP | 3600 |
Steps:
Now mail clients can automatically discover and connect to your mail server.
If you host your own mail server, ensure Autodiscover is enabled. Exchange automatically creates a virtual directory named autodiscover in IIS services upon installation[citation:1].
For Apache Web Server
Your server can now handle Autodiscover requests.
Linux/macOS
Expected Output (For Microsoft 365):
Expected Output (For custom mail server with A record):
Windows (Command Prompt)
If there is no output, DNS changes haven't propagated yet (wait 24-48 hours).
If setup completes without errors, Autodisover is working.
For Microsoft 365 or Exchange, test autodiscover[citation:3]:
yourname@yourdomain.com) and click "Test".If the test passes, Autodiscover is working correctly.
| Problem | Possible Cause | Solution |
|---|---|---|
| Autodisover not working | Incorrect CNAME or A record | Ensure the DNS record points to autodiscover.outlook.com (Microsoft 365) or the correct mail server IP address |
| DNS changes not detected | Propagation delay | Wait 24-48 hours and use dig or nslookup to check |
| Cloudflare DNS issues | Cloudflare proxy interfering | Set proxy to "DNS Only" (?? Grey cloud) |
| Outlook cannot auto-configure | Autodiscover service not enabled | Enable Autodiscover in Exchange, cPanel, or Postfix |
| Multiple conflicting records | Conflicting CNAME or A records | Remove all old Autodiscover records |
| Task | Steps |
|---|---|
| Configure Autodiscover for Microsoft 365 | Add CNAME > autodiscover.yourdomain.com > autodiscover.outlook.com |
| Configure Autodiscover for custom mail server | Add A record > autodiscover.yourdomain.com > Your-Mail-Server-IP |
| Check Autodiscover DNS | Use dig or nslookup |
| Test in Outlook | Use automatic email setup |
| Fix issues | Check DNS, remove conflicting records, wait for propagation |
Your Autodisover subdomain is now correctly configured!