This article goes through the steps to handle all of your Brilliant Directory Website's email through an Office 365 account.  Many of these steps were taken directly from the official Office 365 documentation on this topic, with some updates that make these steps specific to your Brilliant Directories account.


Important: Please make sure your website is on you live domain before you follow the steps below to route all email for your website to Office 365.


Here are the steps:

  1. Before making any changes on your website, you will need to first gather the information specified here from your Office 365 account

  2. Now that you have this information, login to your cPanel account through the Admin area of your site

  3. Navigate to "Advanced Zone Editor":



  4. Enter the following into the "Add A Record" area:

    Type: TXT
    Name: (enter the domain name of your website without the www.  EG: brilliantdirectories.com)
    TTL: 3600
    TXT Data: MS=msXXXXXXXX (NOTE: This is an example. Use your specific Destination or Points to Address value here, from the table in Office 365 that you found in step 1 above.)

  5. Click on "Add Record"

  6. 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 by following these steps:

    Go to the Domains page.

    On the Manage domains page, select the domain that you are verifying and then, in the Action column for that domain, choose Start setup

    O365-BP-Verify-1-2

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

    O365-BP-Verify-1-3

    Choose Next.  

    O365-BP-Verify-1-4

    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. If you’re having trouble with mail flow or other issues after adding DNS records, see Troubleshoot issues after changing your domain name or DNS records.

  7. Navigate back to "Advanced Zone Editor" in your cPanel account

  8. Add the following records:

    Type: CNAME
    Name: autodiscover (it will automatically append your domain name to "autodiscover" after clicking away from this field, which is the desired functionality)
    TTL: 3600
    CNAME: autodiscover.outlook.com


    Click on "Add Record" and then add the next one:

    Type: CNAME
    Name: lyncdiscover (it will automatically append your domain name to "autodiscover" after clicking away from this field, which is the desired functionality)
    TTL: 3600
    CNAME: webdir.online.lync.com


    Click on "Add Record" and then add the next one:

    Type: CNAME
    Name: msoid (it will automatically append your domain name to "autodiscover" after clicking away from this field, which is the desired functionality)
    TTL: 3600
    CNAME: clientconfig.microsoftonline-p.net


    Click on "Add Record" and then add the next one:

    Type: CNAME
    Name: sip (it will automatically append your domain name to "autodiscover" after clicking away from this field, which is the desired functionality)
    TTL: 3600
    CNAME: sipdir.online.lync.com


    Click on "Add Record" and then add the next one:

    Type: SRV
    Name: (enter the domain name of your website without the www.  EG: brilliantdirectories.com)
    TTL:
     3600
    Priority: 100
    Weight: 1
    Port: 443
    Target: sipdir.online.lync.com


    Click on "Add Record" and then add the next one:

    Type: SRV
    Name: (enter the domain name of your website without the www.  EG: brilliantdirectories.com)
    TTL:
     3600
    Priority: 100
    Weight: 1
    Port: 5061
    Target: sipfed.online.lync.com

    Click on "Add Record"


    If you use email with Exchange Online only (not with SharePoint Online), add this as well:

    Type: TXT
    Name: (enter the domain name of your website without the www.  EG: brilliantdirectories.com)
    TTL: 3600
    TXT Data: v=spf1 include:spf.protection.outlook.com -all

    Click on "Add Record"


    If you use email with Exchange Online AND SharePoint Online, add this as well:

    Type: TXT
    Name: (enter the domain name of your website without the www.  EG: brilliantdirectories.com)
    TTL: 3600
    TXT Data: v=spf1 include:sharepointonline.com -all

    Click on "Add Record"


    If you have Mobile Device Management (MDM) for Office 365, then add these 2 as well:

    Type:
     CNAME
    Name: enterpriseregistration (it will automatically append your domain name to "autodiscover" after clicking away from this field, which is the desired functionality)
    TTL: 3600
    CNAME: enterpriseregistration.windows.net


    Click on "Add Record" and then add the next one:

    Type:
     CNAME
    Name: enterpriseenrollment (it will automatically append your domain name to "autodiscover" after clicking away from this field, which is the desired functionality)
    TTL: 3600
    CNAME: enterpriseenrollment-s.manage.microsoft.com

    Click on "Add Record"


  9. Navigate to the "Required DNS Settings" page in your Office 365 account as shown in Step 1 above and find the "Points to address or value" for the "MX Record" on this page:



  10. Navigate to "MX Entry" in cPanel:




  11. Click on "Edit" for the existing MX Record:




  12. Replace the content of the "Destination" field with the "Points to address or value" for the "MX Record" value obtained from your Office 365 account in step 9 above.

  13. Click on "Edit" to save the change


All email for your website will now be routed to your Office 365 account.