Use a WordPress Website with Microsoft 365 Email on One Domain
Question details
A nonprofit wants to use WordPress for its public website and Microsoft 365 for email on the same domain.

- Product
- WordPress and Microsoft 365 Exchange Online
- Device & OS
- not provided
- Scenario
- The organization needs separate website hosting and email services to work together under one domain.
- Observed behavior
- The website should load from the WordPress host while domain email is delivered to Microsoft 365.
Identify your domain's DNS provider and sign in to the Microsoft 365 admin center and your WordPress hosting account. Have the DNS values supplied by both providers ready, and check for existing website and mail records before making changes.
Configure DNS for WordPress hosting and Microsoft 365 email
Use separate DNS records to direct website visitors to your WordPress host and email to Exchange Online.
In the Microsoft 365 admin center, go to Settings > Domains and select Add domain. Enter your domain and follow the prompts to verify ownership, typically by adding a TXT record at your DNS provider.
In the Microsoft 365 admin center, assign appropriate licenses and set up the users and mailboxes that will receive email at the domain before changing the MX record.
Open your DNS provider's DNS management page and add or update the website A or CNAME records using the values supplied by your WordPress hosting provider. Configure the root domain and the www address as directed by the host.
In the same DNS management page, add or update the MX record to the value shown in the Microsoft 365 domain setup. Add the requested CNAME and TXT records, including the SPF record, according to Microsoft's instructions.
Return to Settings > Domains in the Microsoft 365 admin center to check the domain setup. After DNS changes propagate, visit the website and send test messages to and from a domain email address.

Create Website and Nonprofit Documents with WPS Office
WPS Office is a free, lightweight, easy-to-use alternative for creating website copy and nonprofit documents. Its familiar interface and Microsoft Office format compatibility make migration straightforward. DNS and email hosting still need to be configured with your providers.

Frequently Asked Questions
Can WordPress and Microsoft 365 use the same domain?
Yes. Configure the website's A or CNAME records to point to the WordPress host and the MX record to point to Microsoft 365. Both services can then use the same domain.
Does Microsoft 365 host WordPress websites?
Microsoft 365 does not provide WordPress website hosting. Use a WordPress hosting provider for the site and configure Microsoft 365 or Exchange Online separately for email.
Will hosting the website on WordPress change Microsoft 365 email?
The website host does not need to change how Exchange Online email works. Email delivery depends on the correct Microsoft 365 DNS records, active licenses, and configured mailboxes.
Where do I find the Microsoft 365 DNS values?
In the Microsoft 365 admin center, go to Settings > Domains, select your domain, and review the DNS setup or domain health information. Use the values shown there when editing records at your DNS provider.
What should I do if my domain already has an SPF record?
Review the existing SPF TXT record and update it to include the required Microsoft 365 sender information and any other legitimate email senders. Do not create a second SPF record for the same domain.




