My HP

3rd April, 2015 | External Email & MX |

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 doesn’t 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'.


Once you have successfully logged in, scroll down to the Domains area and choose 'Advanced DNS Zone Editor'.


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.

NameTTLTypeTXT Data
Use your domain name followed by a dot, for example, 'hpdemo.uk.' This value MUST end with a period (.)1TXTMS=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?'.

Once entered, select 'Add Record'.

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'.


On the Add this TXT record to show you own domain_name page, choose 'Okay, I've added the record'.


Choose 'Next'.

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'.


Once you have successfully logged in, scroll down to the Email area and choose 'MX Entry'.


In the Email Routing area, select 'Remote Mail Exchanger' as the option and then select 'Choose Change'.


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.

PriorityDestination
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?'.

Once complete, choose 'Add New Record'.

--

If there are any other MX records in the MX Records section, remove each of them by selecting 'Remove'.


Confirm the deletion by selecting 'Delete'.

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'.


Once you have successfully logged in, scroll down to the Domains area and choose 'Advanced DNS Zone Editor'.

--

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.

NameTTLTypeCNAME
autodiscover.domain_name. (for example, autodiscover.hpdemo.uk.) This value MUST end with a period (.)3600CNAMEautodiscover.outlook.com
sip.domain_name. (for example, sip.hpdemo.uk.) This value MUST end with a period (.)3600CNAMEsipdir.online.lync.com
lyncdiscover.domain_name. (for example, lyncdiscover.hpdemo.uk.) This value MUST end with a period (.)3600CNAMEwebdir.online.lync.com
msoid.domain_name. (for example, msoid.hpdemo.uk.) This value MUST end with a period (.)3600CNAMEclientconfig.microsoftonline-p.net

Once you have entered the first row, choose 'Add Record' to save it.

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.
NameTTLTypeCNAME
enterpriseregistration.domain_name. (for example, enterpriseregistration.hpdemo.uk.) This value MUST end with a period (.)3600CNAMEenterpriseregistration.windows.net
enterpriseenrollment.domain_name. (for example, enterpriseenrollment.hpdemo.uk.) This value MUST end with a period (.)3600CNAMEenterpriseenrollment.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'.


Once you have successfully logged in, scroll down to the Domains area and choose 'Advanced DNS Zone Editor'.


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.

NameTTLTypeTXT Data
Use your domain_name. (for example, hpdemo.uk.) This value MUST end with a period (.)3600TXTv=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'.


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'.


Once you have successfully logged in, scroll down to the Domains area and choose 'Advanced DNS Zone Editor'.


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.

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.

Comments