Articles on: Control Panel
This article is also available in:

How to configure Office 365 in cPanel?

Steps to set up Office 365 in cPanel

First, retrieve less registration of your Microsoft 365 accounts via this link.

Log in to your cPanel control panel.

Click Zone Editor in the Domains section.

Click Manage next to the domain name. To add a new directory, select the directory type from the drop-down menu and enter the folder name, TTL and destination.

Configure DNS for Office 365.

To configure Microsoft Office 365, update DNS records as follows:

Add a TXT entry as explained in #1 of


Important: The exact value is provided on your Office365 panel

Change the existing TXT/SPF entry. Add to the existing entry.


NOMDEDOMAINE.COM. 14400 TXT "v=spf1 +a +mx +ip4: ~all"


Example: NOMDEDOMAINE.COM. 14400 TXT "v=spf1 +a +mx +ip4: ~all"

Edit MX entry:

NOMDEDOMAINE.COM. 300 MX 0 *Important, you must validate the MX entry with the O365 panel

Delete the DNS entry of type A record named: Autodiscover

Add the following DNS entries

autodiscover 3600 CNAME
sip 3600 CNAME
lyncdiscover 3600 CNAME
msoid 3600 CNAME
enterpriseregistration 3600 CNAME
enterpriseenrollment 3600 CNAME

Add the following SRV entries:

sip. tls 3600 SRV 100 1 443
sipfederationtls. tcp 3600 SRV 100 1 5061 6. Change remote email routing6. Change remote email routing

After editing the DNS records, go to the Routing of cPanel emails section.

Select your domain from the drop-down menu, set your routing to “Remote Mail Server” and click “Edit”.

Congratulations! You’ve added Office 365 directories. In general, it takes about 15 minutes for these changes to be active and functional. As it must propagate through the DNS system, the process can take up to a few hours.

Updated on: 17/02/2023

Was this article helpful?

Share your feedback


Thank you!