How to Use Office 365 for Your Domain’s Email

When you add your domain name to your HostM hosting account, the default configuration is such that your hosting account handles both your website and email hosting.

If, instead, you’d like to use Office 365 for your domain’s email, you can use the following steps to do so:

  1. Make sure that you’ve already added the domain to your HostM hosting account.

  2. If you have not already done so, sign up for Office 365 for your domain on their website.

    Be sure to add your domain to Office 365 and verify the domain per their instructions.

  3. Sign in to your Office 365 account on their website.

  4. Click Settings, then Domains.

  5. Click the Add Domain button.

  6. Enter your domain, then click Next.

  7. Office 365 will ask you to verify your domain.

    Make a note of the TXT value MS=msXXXXXXXX where XXXXXXXX is a number assigned to your verification procedure.

    Leave the browser window or tab open.

  8. Open a new browser window or tab, then sign in to your HostM hosting account’s cPanel.

    Your cPanel access details are listed on the hosting account’s Info page in the Client Lounge.

  9. Under the Domains heading, click Zone Editor.

  10. Next to the domain you wish to modify, click Manage.

  11. Just below the search box, click TXT.

  12. To the right of the search box, click the down arrow in the blue button that says Add Record (be sure to click the down arrow, not the text itself), then select Add TXT Record.

  13. Enter the following details:

    • Name: example.com
      Record: MS=msXXXXXXXX

      Replace example.com with your own domain.

      Replace MS=msXXXXXXXX with the actual TXT value that is shown on the Office 365 window or tab that you have open from earlier.

  14. Click the Add Record button to the right.

  15. Now look for a record whose value in the Name column is your domain name, and whose Record begins with v=spf1.

  16. To the right of that record, click the Edit button.

  17. In the Record field, right after the v=spf1, and without deleting anything, insert include:spf.protection.outlook.com.

    Ensure that there is a space character both before and after the include:spf.protection.outlook.com.

  18. Click the Save Record button to the right.

  19. Just below the search box, click MX.

  20. To the right of the search box, click the down arrow in the blue button that says Add Record (be sure to click the down arrow, not the text itself), then select Add MX Record.

  21. Enter the following details:

    • Priority: 0
      Destination: example-com.mail.protection.outlook.com

      Replace the example-com portion of the Destination value in the above example with your actual domain, with all periods replaced by dashes.

      For example, if your domain was example2.com, you would set the Destination to example2-com.mail.protection.outlook.com.

  22. Click the Add Record button to the right.

  23. Now delete any MX records whose value in the Name column is your domain name, but whose Destination does not contain outlook.com within it.

  24. Just below the search box, click CNAME.

  25. To the right of the search box, click the down arrow in the blue button that says Add Record (be sure to click the down arrow, not the text itself), then select Add CNAME Record.

  26. Enter the following details:

    • Name: autodiscover
      Record: autodiscover.outlook.com

      When you enter autodiscover in the Name field, then go on to another field, the value of the Name field automatically changes to autodiscover.example.com., where example.com is replaced by your actual domain. This is normal and intended.

  27. Click the Add Record button to the right.

  28. Now use the same method outlined in steps 25 through 27 to add the following additional CNAME records:

    • Name: lyncdiscover
      Record: webdir.online.lync.com

    • Name: msoid
      Record: clientconfig.microsoftonline-p.net

    • Name: sip
      Record: sipdir.online.lync.com

    • Name: enterpriseregistration
      Record: enterpriseregistration.windows.net

    • Name: enterpriseenrollment
      Record: enterpriseenrollment.manage.microsoft.com

  29. Just below the search box, click SRV.

  30. To the right of the search box, click the down arrow in the blue button that says Add Record (be sure to click the down arrow, not the text itself), then select Add SRV Record.

  31. Enter the following details:

    • Name: _sip._tls
      Priority: 100
      Weight: 1
      Port: 443
      Target: sipdir.online.lync.com

      When you enter _sip._tls in the Name field, then go on to another field, the value of the Name field automatically changes to _sip._tls.example.com., where example.com is replaced by your actual domain. This is normal and intended.

  32. Click the Add Record button to the right.

  33. To the right of the search box, click the down arrow in the blue button that says Add Record (be sure to click the down arrow, not the text itself), then select Add SRV Record.

  34. Enter the following details:

    • Name: _sipfederationtls._tcp
      Priority: 100
      Weight: 1
      Port: 5061
      Target: sipfed.online.lync.com

      When you enter _sipfederationtls._tcp in the Name field, then go on to another field, the value of the Name field automatically changes to _sipfederationtls._tcp.example.com., where example.com is replaced by your actual domain. This is normal and intended.

  35. Click the Add Record button to the right.

  36. Click the HostM logo in the upper-left corner of your cPanel to go back to the main page.

  37. Under the Email heading, click Email Routing.

  38. Select your domain from the drop-down menu.

  39. Select Remote Mail Exchanger, then click the Change button.

  40. Switch back to the Office 365 browser window or tab, then click the Verify button.

  41. Select I'll manage my own DNS records, then click Next.

  42. Click the Verify button.

Your domain name is now pointing at Office 365 for email purposes. Please note that it may take up to several hours for your changes to be recognized by ISPs worldwide, including your internet connection provider.