Xpoudy

How to Set Up Microsoft 365 Autodiscover in Cloudflare

Short answer

For a direct Microsoft 365 setup, add the Autodiscover CNAME provided by Microsoft to Cloudflare and set it to DNS only. The usual target is autodiscover.outlook.com. For hybrid Exchange, confirm the intended route with your administrator before editing the existing record.

By Xpoudy ·

Check what uses the current record

Review the domain’s setup in Microsoft 365 admin center and check its Exchange Online instructions. A domain with on-premises or hybrid mail might have deliberately different client routing. Record the old value and who owns the change before changing a live zone.

Publish the CNAME

FieldCommon Microsoft 365 value
TypeCNAME
Nameautodiscover
Targetautodiscover.outlook.com
Proxy statusDNS only

Enter the exact target shown for the domain. Look for an old A, AAAA or CNAME entry with the same name and resolve the conflict with the mail administrator. Check the public CNAME using Xpoudy DNS Lookup.

Verify the right outcome

Use Outlook’s add-account flow with a test mailbox to confirm it finds the Microsoft settings. If the inbox already works in Outlook and the issue appears only in the Xpoudy consent screen, check Microsoft sign-in or tenant approval from the Microsoft 365 connection tab. Autodiscover and OAuth diagnose different paths.