Microsoft 365 Email Not Working on a Custom Domain
Microsoft 365 mail depends on MX, autodiscover, SPF and licensing for the mailbox.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Check
- The domain is added and verified in the admin center.
- MX record points to your tenant's Microsoft address, with no older MX records mixed in.
- Autodiscover CNAME exists so Outlook can set itself up. See Outlook Autodiscover and Email Setup: DNS Records Explained.
- SPF includes Microsoft's sending servers, and there is only one SPF record. See SPF 'PermError: Too Many DNS Lookups' and Multiple SPF Records.
- DKIM is enabled for the domain.
- The user has a license and an active mailbox.
Test by sending to and from an outside address and reading any bounce message.
Related guides
- Zoho Mail or Other Hosted Email on Your Domain: Basic Setup and Fixes
- How to Set Up SMTP in WordPress So Emails Actually Arrive
- WordPress Password Reset Email Not Arriving
- WordPress Not Sending Emails: Fix Contact Form and Password Reset Emails
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.