CRM Email Router Configuration in Exchange 2016 environment

This article  scopes on the CRM email router configuration in an on premise CRM and Exchange Environment.

The CRM email router provides us to configure interface between CRM deployment and Exchange server through POP3 for incoming email configuration.

The Microsoft Dynamics CRM 2016 Email Router is an interface between Microsoft Dynamics CRM 2016 and an email system.

By doing this the CRM users will be receiving the emails and sending after this configuration is complete.

Basically this CRM 2016 Email Router requires 2 configurations in an email system (Exchange on premise server in our case):

1) POP3 servers for incoming email – We need to use the Exchange POP3 configuration



In our example we are using other specified.

Other specified: By using this option we are configuring the email router in CRM to send emails on behalf of every CRM user through a specific CRM service account that has access to all the CRM users mailboxes which will be the preferred setting. Other advanced settings can be configured in the advanced section.


2) SMTP or Exchange servers (EWS)  for outgoing email:

The outgoing email configurations for CRM is used for users or queues to send Microsoft Dynamics CRM email messages.

For Exchange online we need to use the below configuration.

We can use the same configuration for on premise and use the EWS URL , if the EWS URL is resolving from the CRM email router configuration host.


For SMTP configuration:

In the below case we can use and SMTP server (can be IIS SMTP  or SMTP G/W)and the CRM email router host needs to have connection to the SMTP host. The email router component can be installed on the SMTP server itself and configured.


Exchange Permission for CRM account:

First we need to create a new Application Impersonation role assignment in the RBAC and assign to the CRM service account

In order to do that please run the below command:

New-ManagementRoleAssignment –Name:impersonationAssignmentName – Role:ApplicationImpersonation –User:[ServiceUser]

Run the below command on the CRM users Container:

Get-Mailbox -OrganizationalUnit CRMUsersCOntainerOU | ForEach-Object {Add-ADPermission -Identity $_.DistinguishedName -User User1 -ExtendedRights ms-Exch-EPI-May-Impersonate}

Get-Mailbox -OrganizationalUnit CRMUsersCOntainerOU | ForEach-Object {Add-ADPermission -Identity $_.DistinguishedName -User User1 -ExtendedRights ms-Exch-EPI-Impersonation}

This service user will have a forwarding mailbox in the CRM. All email sent to that address will have  a forwarder and send to the actual recipient.

After the above configuration is completed the CRM can send outgoing emails ,receive incoming emails and process for all users.

Thanks & Regards
Sathish Veerapandian

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: