Setting up email to work with Office 365

Follow the steps in this article to verify your domain and set up DNS records for email, Skype for Business Online, and so on. --- ### Add a TXT record for verification Before you use your domain with Office 365, we have to make sure that you own it. Your ability to log in to your account at your domain registrar and create the DNS record proves to Office 365 that you own the domain. > Please Note - This record is used only to verify that you own your domain; it doesnt affect anything else. You can delete it later, if you like. Log into your cPanel account. If you are unsure on how to do this, please view the following help article - '[How to log into cPanel](https://hostpresto.com/help/article/1)'. ![alt text](https://i.imgur.com/QRmld56.png "Office 365 Step 1") --- Once you have successfully logged in, scroll down to the Domains area and choose '**Advanced DNS Zone Editor**'. ![alt text](https://i.imgur.com/V4vzaXy.png "Office 365 Step 2") --- On the Advanced DNS Zone Editor page, in the Add a Record area, in the boxes for the new record, type or copy and paste the values from the following table. | Name | TTL | Type | TXT Data | |----- |:-----:| :-----: | ----- | |Use your domain name followed by a dot, for example, 'hpdemo.uk.' This value MUST end with a period (.) | 1 | TXT | MS=msXXXXXXXX | > NOTE This is an example. Use your specific Destination or Points to Address value here, from the table in Office 365. If you're unsure, look at '[How do I find this?](https://support.office.com/en-us/article/Gather-the-information-you-need-to-create-Office-365-DNS-records-77f90d4a-dc7f-4f09-8972-c1b03ea85a67?ui=en-US&rs=en-US&ad=US)'. Once entered, select '**Add Record**'. ![alt text](https://i.imgur.com/xw4uR0v.png "Office 365 Step 3") Wait a few minutes before you continue, so that the record you just created can update across the Internet. --- ### Office 365 Domain Management Now that you've added the record at your domain registrar's site, you'll go back to Office 365 and request Office 365 to look for the record. When Office 365 finds the correct TXT record, your domain is verified. Go to the Manage domains page. Select the domain that you are verifying and then, in the Action column for that domain, choose '**Start setup**'. ![alt text](https://i.imgur.com/XINH3Yn.png "Office 365 Step 4") --- On the Add this TXT record to show you own domain_name page, choose '**Okay, I've added the record**'. ![alt text](https://i.imgur.com/fse8ZEz.png "Office 365 Step 5") --- Choose '**Next**'. ![alt text](https://i.imgur.com/2wNSS4N.png "Office 365 Step 7") Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. --- ### Add an MX record so email for your domain will come to Office 365 Log into your cPanel account. If you are unsure on how to do this, please view the following help article - '[How to log into cPanel](https://hostpresto.com/help/article/1)'. ![alt text](https://i.imgur.com/QRmld56.png "Office 365 Step 8") ---- Once you have successfully logged in, scroll down to the Email area and choose '**MX Entry**'. ![alt text](https://i.imgur.com/IKm4u5W.png "Office 365 Step 8") ---- In the Email Routing area, select '**Remote Mail Exchanger**' as the option and then select '**Choose Change**'. ![alt text](https://i.imgur.com/weC6kS3.png "Office 365 Step 9") ---- On the MX Entry Maintenance page, in the '**Add a New Record**' area, for the new record, type or copy and paste the values from the following table. | Priority | Destination | |:-----: |:-----:| | 0 | .mail.protection.outlook.com | > NOTE Get your from your Office 365 portal account. If you are unsure, please see '[How do I find this?](https://support.office.com/en-US/article/How-do-I-find-this-77f90d4a-dc7f-4f09-8972-c1b03ea85a67)'. Once complete, choose '**Add New Record**'. ![alt text](https://i.imgur.com/9q67BVy.png "Office 365 Step 10") -- If there are any other MX records in the MX Records section, remove each of them by selecting '**Remove**'. ![alt text](https://i.imgur.com/sWew9sN.png "Office 365 Step 11") --- Confirm the deletion by selecting '**Delete**'. ![alt text](https://i.imgur.com/875OZgH.png "Office 365 Step 12") If other records exist, repeat this same process, keeping only the one that you created earlier in this procedure. --- ### Add the four CNAME records that are required for Office 365 Log into your cPanel account. If you are unsure on how to do this, please view the following help article - '[How to log into cPanel](https://hostpresto.com/help/article/1)'. ![alt text](https://i.imgur.com/QRmld56.png "Office 365 Step 13") --- Once you have successfully logged in, scroll down to the Domains area and choose '**Advanced DNS Zone Editor**'. ![alt text](https://i.imgur.com/V4vzaXy.png "Office 365 Step 14") -- Add the first of the four CNAME records: On the Advanced DNS Zone Editor page, in the Add a Record area, in the boxes for the new record, type or copy and paste the values from the first row in the following table. | Name | TTL | Type | CNAME | |:-----: | :-----: | :-----: | :-----:| | autodiscover.domain_name. (for example, autodiscover.hpdemo.uk.) This value MUST end with a period (.) | 3600 | CNAME | autodiscover.outlook.com | | sip.domain_name. (for example, sip.hpdemo.uk.) This value MUST end with a period (.) | 3600 | CNAME | sipdir.online.lync.com | | lyncdiscover.domain_name. (for example, lyncdiscover.hpdemo.uk.) This value MUST end with a period (.) | 3600 | CNAME | webdir.online.lync.com | | msoid.domain_name. (for example, msoid.hpdemo.uk.) This value MUST end with a period (.) | 3600 | CNAME | clientconfig.microsoftonline-p.net | Once you have entered the first row, choose '**Add Record**' to save it. ![alt text](https://i.imgur.com/aZ1tgFy.png "Office 365 Step 15") Now repeat this process again for each of the other three CNAME records in the table above, remebering to '**Add Record**' each time. --- If you have Mobile Device Management (MDM) for Office 365, then you must create two additional CNAME records. Follow the procedure that you used for the other four CNAME records, but supply the values from the following table. > If you do not have MDM, you can skip this step. | Name | TTL | Type | CNAME | |:-----: | :-----: | :-----: | :-----:| | enterpriseregistration.domain_name. (for example, enterpriseregistration.hpdemo.uk.) This value MUST end with a period (.) | 3600 | CNAME | enterpriseregistration.windows.net | | enterpriseenrollment.domain_name. (for example, enterpriseenrollment.hpdemo.uk.) This value MUST end with a period (.) | 3600 | CNAME | enterpriseenrollment.manage.microsoft.com | --- ### Add a TXT record for SPF to help prevent email spa You cannot have more than one TXT record for SPF for a domain. (If your domain has more than one SPF record, it may result in email errors, as well as delivery and spam classification issues.) If you already have an SPF record for your domain, then add the required Office 365 values to the current record so that you have a single SPF record that includes both sets of values. Log into your cPanel account. If you are unsure on how to do this, please view the following help article - '[How to log into cPanel](https://hostpresto.com/help/article/1)'. ![alt text](https://i.imgur.com/QRmld56.png "Office 365 Step 16") ---- Once you have successfully logged in, scroll down to the Domains area and choose '**Advanced DNS Zone Editor**'. ![alt text](https://i.imgur.com/V4vzaXy.png "Office 365 Step 14") ---- On the Advanced DNS Zone Editor page, in the '**Add a Record**' area, in the boxes for the new record, type or copy and paste the values from the following table. | Name | TTL | Type | TXT Data | |:-----: | :-----: | :-----: | :-----:| | Use your domain_name. (for example, hpdemo.uk.) This value MUST end with a period (.) | 3600 | TXT | v=spf1 include:spf.protection.outlook.com -all | > NOTE We recommend copying and pasting this entry, so that all of the spacing stays correct. Choose '**Add Record**'. ![alt text](https://i.imgur.com/Xka0nc4.png "Office 365 Step 15") --- ### Add the two SRV records that are required for Office 365 Log into your cPanel account. If you are unsure on how to do this, please view the following help article - '[How to log into cPanel](https://hostpresto.com/help/article/1)'. ![alt text](https://i.imgur.com/QRmld56.png "Email account Step 16") ---- Once you have successfully logged in, scroll down to the Domains area and choose '**Advanced DNS Zone Editor**'. ![alt text](https://i.imgur.com/V4vzaXy.png "Office 365 Step 17") ---- Add the first of the two SRV records. On the Advanced DNS Zone Editor page, in the '**Add a Record**' area, in the boxes for the new record, type or copy and paste the values from the first row in the following table. | Name | TTL | Type | Priority | Weight | Port | Target | | :-----: | :-----: | :-----: | :-----: | :-----: | :-----: | :-----: | _sip._tls.domain_name. (for example, _sip._tls.hpdemo.uk.) This value MUST end with a period (.) | 3600 | SRV | 100 | 1 | 443 | sipdir.online.lync.com | | _sipfederationtls._tcp.domain_name. (for example, _sipfederationtls._tcp.hpdemo.uk.) This value MUST end with a period (.) | 3600 | SRV | 100 | 1 | 5061 | sipfed.online.lync.com | Once the first record has been entered, choose '**Add Record**' to save. ![alt text](https://i.imgur.com/fFezHrC.png "Office 365 Step 17") Now go ahead and add the other SRV record. Again in the '**Add a Record**' section, create a record by using the values from the next row in the table, and then again choose '**Add Record**' to save that record. > NOTE Typically it takes about 15 minutes for DNS changes to take effect. However, it can occasionally take longer for a change you've made to update across the Internet's DNS system. ---- Setting up email to work with Office 365 is now complete.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to log into cPanel

There are two different methods to log into your cPanel control panel in order to manage every...

What's the difference between Aliases, Addon and Subdomains?

### Aliases An Alias domain does not have a unique website. It is a domain that is masked to...

Creating a MySql Database

If your website uses PHP or you need to hold a collection of records which need to be accessed...

Importing a MySql Database

You can import a MySQL database via phpMyAdmin which is available in the cPanel control panel....

Exporting a MySql Database

You can export a MySQL database via phpMyAdmin, available in cPanel, if you want to keep a backup...