Set Up Microsoft 365 Email for Your Domain Using cPanel
Set Up Microsoft 365 Email for Your Domain Using cPanel
Introduction
If you have a Microsoft 365 subscription and want to use your custom domain for emails, you need to configure DNS records through your cPanel hosting account. This guide walks you through adding the necessary DNS entries to connect your domain with Microsoft 365 email services.
Prerequisites
- Active Microsoft 365 subscription with your custom domain added.
- Access to your domain’s cPanel control panel.
- Basic understanding of DNS records (MX, TXT, CNAME).
Step 1: Log in to cPanel
Access your hosting account’s cPanel by navigating to https://yourdomain.com/cpanel
or through your hosting provider’s dashboard. Enter your username and password to log in.
Step 2: Open the DNS Zone Editor
Once logged in, locate the Domains section and click on Zone Editor or DNS Manager.
Step 3: Remove Existing Email DNS Records
To avoid conflicts, remove any existing MX, TXT, or CNAME records related to old email services (if applicable).
Step 4: Add Microsoft 365 DNS Records
Add the following DNS records exactly as Microsoft 365 requires. These settings enable email routing, SPF, DKIM, and Autodiscover functionality.
Record Type | Name/Host | Value/Data | TTL |
---|---|---|---|
MX | @ or leave blank | yourdomain-com.mail.protection.outlook.com (replace yourdomain-com with your domain in Microsoft 365 format) |
3600 |
TXT (SPF) | @ | v=spf1 include:spf.protection.outlook.com -all |
3600 |
CNAME | autodiscover | autodiscover.outlook.com |
3600 |
CNAME | sip | sipdir.online.lync.com |
3600 |
CNAME | lyncdiscover | webdir.online.lync.com |
3600 |
CNAME | msoid | clientconfig.microsoftonline-p.net |
3600 |
TXT (DKIM) | selector1._domainkey | (Microsoft 365 DKIM key value from your admin center) | 3600 |
TXT (DKIM) | selector2._domainkey | (Microsoft 365 DKIM key value from your admin center) | 3600 |
Note: Microsoft 365 may provide additional DNS records for your setup. Always refer to your Microsoft 365 admin panel for exact values.
Step 5: Save Changes and Verify
After adding all records, save your changes. Then, in the Microsoft 365 admin center, use the domain verification tool to confirm your DNS setup.
Additional Tips
- DNS changes may take up to 48 hours to propagate worldwide.
- Keep your cPanel login credentials secure.
- Contact your hosting provider if you encounter issues adding DNS records.