Dynamics 365 Hybrid Exchange Online Configuration

The Microsoft Dynamics CRM E-mail Router has been deprecated, and the Office 365 authentication type and Regional Discovery endpoints are approaching their EOL (Deprecation of Office 365 Authentication Type and Regional Discovery Service Deprecated). This has resulted in a need to move to Server-Side Sync before March 1, 2021.

But before we dive into a Hybrid Exchange Online scenario, let us recap the current state of affairs.

Learn more about Dynamics 365!

Learn More

How to Migrate E-mail Router Settings: 

For simple scenarios, it is pretty straightforward to migrate settings from the e-mail router to server-side sync. 

Migrate settings from the E-mail Router to server-side synchronization | Microsoft Docs 

Supported and Unsupported Configurations: 

For Dynamics 365 on-prem deployments, review the following article: 

Supported e-mail service configurations for server-side synchronization | Microsoft Docs 

For Dynamics 365 online, review the following article:

Supported e-mail service configurations for server-side synchronization – Power Platform | Microsoft Docs 

With that out of the way, I recently came across a scenario similar to the one shown below: 

There are two separate Office 365 tenants: 

  1. Contoso.com 
  2. AdventureWorks.com 

Dynamics 365 instance was under Contoso.com tenant; however, the Exchange Online was under AdventureWorks.com tenant. 

The current setup was using Forward Box mailbox setup. The e-mails were forwarded from [email protected] – which was created as a queue in Dynamics 365 – to a forward mailbox, contoso.com, and the e-mail router would then bring the e-mail to Dynamics 365. 

However, as we know, with the e-mail router having been deprecated and the looming shutdown of the regional discovery service, we had to migrate to server-side sync. 

This case required creating a Hybrid Exchange Online profile. 

Exchange Online Configuration 

We need to allow application impersonation on the mailbox that will be used to configure Hybrid Exchange Profile in Dynamics 365. 

Step 1: 

Go to Exchange Admin Center Microsoft Exchange Admin Center 

Step 2: 

Open Permissions: 

dynamics 365 Open Permissions

Add Impersonation Role: 

Here we will add the impersonation role to our support mailbox. 

Add Impersonation Role

Add Impersonations

That is all that is required in Exchange Online. 

Next, we will configure the Hybrid Exchange Profile in Dynamics 365.

Dynamics 365 Configuration 

In Dynamics 365, we will create an Exchange Server (Hybrid) profile: 

Step 1: 

Navigate to Dynamics 365 Settings -> Email Configuration

Dynamics 365 Configuration 

Step 2: 

Create the Hybrid Profile, use the following URL for incoming and outgoing: https://outlook.office365.com/EWS/Exchange.asmx 

Create the Hybrid Profile

Step 3: 

Configure the mailbox of the Support queue: 

Configure the mailbox

And there you have it! We have configured incoming and outgoing e-mails across tenants using server-side sync in a few simple steps. 

Reach out to us if you have any questions using the comment box below! We are happy to help. You can also connect with our BOLDEnthusiasts via the Contact us page!