** Email Router Configuring - MS CRM 2013 **
Server-side synchronization eliminates the need for Microsoft Dynamics CRM for Outlook that existed with earlier versions of Microsoft Dynamics to manage and track emails from/to Outlook.
Microsoft Dynamics CRM integrates with Outlook using the Microsoft Dynamics CRM for Outlook client (the Outlook plug-in), but earlier versions of Microsoft Dynamics CRM usually required both an installed and configured email router (typically on a separate machine) and Outlook to be running (for it to send and receive emails). Use of server-side synchronization eliminates the need for the email router.
In addition, server-side synchronization now provides a level of integration with Exchange directly to allow for this functionality. An example of this is as follows:
1. A user creates a new email and selects the Track in CRM option.
2. The user clicks Send on the email, which sends it to Exchange for routing (sending).
3. Exchange communicates with Microsoft Dynamics CRM, which creates a corresponding record in CRM, which in turn updates Exchange.
Note
The Outlook client is still necessary to promote emails from Outlook to CRM.
The following scenarios are supported for server-side synchronization:
Microsoft Dynamics CRM On-Premise using either:
Exchange Server 2010/2013
Gmail, MSN, Outlook.com, Windows Live Mail, Yahoo! Mail using POP3/SMTP
Note
Only Exchange supports both Email and Appointment, Contacts, and Tasks synchronization. Using a POP3/SMTP email server will still provide email synchronization, but Appointments, Contacts, and Tasks are not synchronized.
The following scenarios are not supported for server-side synchronization:
Microsoft Dynamics CRM Online with Exchange On-Premise
Microsoft Dynamics CRM On-Premise with Exchange Online
Any version of Exchange prior to 2010
In addition, because the server-side synchronization requires a mailbox record for every user and queue in the organization that wants to leverage server-side synchronization, it can create some administrative overhead.
Tip
If your organization has many mailboxes, it might make sense to use the Forward mailbox, which creates a single mailbox that forwards the email to the user’s mailbox.
Configure Server-Side Synchronization
To configure server-side synchronization, follow these steps:
1. Navigate to Settings > Email Configuration (see Figure 16.1). Select Email Server Profiles to create a profile.
2. Select + New to create a new profile (see Figure 16.2). Select either Exchange or POP3-SMTP Profile depending on your email server. For this example, we configure an Exchange server and so select Exchange Profile.
3. To activate data encryption, navigate to Settings > Data Management and select the Data Encryption option (see Figure 16.4).
Note
HTTPS must be enabled to use the Data Encryption option.
4. Select Activate to enable data encryption (see Figure 16.5).
5. The new email server profile page will open (see Figure 16.6), allowing you to enter the information for the Exchange server.
Caution
If you are accessing Dynamics CRM without Secure Sockets Layer (SSL), you will receive the error message shown in Figure 16.7, which will prevent you from setting the username and password for the profile. To enable the username and password, you must adjust the
AllowCredentialsEntryViaNonSecureChannels
value in the configuration database. Alternatively, you can change the authentication to use Windows-integrated authentication.
6. Enter a value for Name and select Save. The Ribbon menu will now give you a Test & Enable Mailboxes option (see Figure 16.8), as well as set the profile as default.
At this point, you can also specify the credentials used by the Exchange server, as follows:
Credentials Specified by a User or Queue—Use this option when you want to use credentials specified in the mailbox record of the user or queue.
Credentials Specified in Email Server Profile—This option can be used when you want to use a single credential for all the mailboxes. The credentials require that they have impersonation rights on Exchange.
Windows Integrated Authentication—This option leverages the same credentials that the CRM Asynchronous Service is configured with (only applicable to Exchange and SMTP servers).
Without Credentials (Anonymous)—This is not a valid selection when working with Exchange.
7. As the Authenticate Using value, select Credentials Specified by a User or Queue. Because we’re only going to set up one profile, we’re going to set this profile as the default profile by selecting that option on the Ribbon menu.
8. Now we need to set up our mailboxes. Close this window and navigate to Mailboxes, and select Active Mailboxes.
9. By default, you will see a mailbox for all created users in the CRM system (see Figure 16.9). Select the mailbox you want to update, and open it.
10. By default, the Incoming and Outgoing Email and Appointments, Contacts, and Tasks Statuses are set to Microsoft Dynamics CRM for Outlook (see Figure 16.10).
11. Change the settings to “Server-Side Synchronization or Email Router,” as shown in Figure 16.11. Notice also that the Server Profile value is the newly created server profile that we created in step 4. Select Save.
12. Because we selected Server-Side Synchronization, we are prompted to specify credentials. (If you select CRM for Outlook or integrated windows authentication, no credentials are necessary.) Enter the credentials, as shown in Figure 16.12, and select Save.
13. Notice that the alert still indicates that the mailbox is disabled for incoming email processing. This is because the mailbox has not been tested/enabled. To do that, select the Test & Enable Mailbox option from the Ribbon menu (see Figure 16.13).
14. If the test is successful, you will receive an email showing the test message (see Figure 16.14).
Tip
You may also need to approve the email address by clicking the Approve Email button to verify the test (see Figure 16.12).
15. If you review the record in Dynamics CRM, you will see that results show Success for the test (seeFigure 16.15).
The server-side synchronization is now set up and configured to work. You can perform the same configurations on a Forward mailbox.
Tip
If you have failures during the setup and configuration, you can navigate to the Alerts section and review and correct any specific problems shown.