Microsoft Exchange Server 2010 replaces the WebDAV functionality with Exchange Web Services (EWS). Microsoft Dynamics CRM 4.0 E-mail Router (On-Premise) with Update Rollup 8 has been enhanced to integrate EWS support and hence function with Microsoft Exchange Server 2010. The E-mail Router maintains compatibility with Exchange 2003 (only WebDAV) and Exchange 2007 (both WebDAV and EWS).
Prerequisites
- Microsoft Dynamics CRM 4.0 On-Premise installation.
- Microsoft Exchange Server 2010.
- Microsoft Dynamics CRM 4.0 E-mail Router (On-Premise) with Update Rollup 8 or higher.
Microsoft Exchange Server 2010
Granting Exchange Impersonation permissions.
Microsoft Exchange Server 2010 makes do with the permissions model used in Microsoft Exchange Server 2007 and adopts the new Role Based Access Control (RBAC) allowing users to define extremely broad or extremely precise permissions models based on the roles of administrators and users. New commands are available to allow User/Mailbox Impersonation with varying scopes. Exchange Impersonation permission is required for a given Exchange 2010 account if it needs to cater to multiple Exchange 2010 accounts. The profile created with a user account having Exchange Impersonation permission can access the mailboxes of the users who are in the scope of this Exchange Impersonation permission.
In the Microsoft Exchange Server 2010 system, launch Exchange Management Shell from Start-> All Programs-> Microsoft Exchange Server 2010 -> Exchange Management Shell. The shell will connect to the Microsoft Exchange Server 2010 and display the prompt.
[PS] C:\Windows\System32>.
Example: impersonation scenarios
1. A single user is configured to connect to mailboxes of all other CRM users and queues that have their mailboxes on Microsoft Exchange Server 2010. This configuration hence makes do with the need to create profile for each CRM user and queue individually.
To achieve this you need to run the following command in Exchange Management Shell–
New-ManagementRoleAssignment –Name: "ImpersonationName”
-User: "RouterAdministrator@YourOrganization.com" –Role:"ApplicationImpersonation”
In the above command, the Name parameter specifies a name for the new management role assignment. User is the username of the user who is given Exchange Impersonation permission and therefore can now access Exchange 2010 mailboxes of all other users in the Exchange organization.
[Details on New-ManagementRoleAssignment can be found here]
2. A single user is configured to connect to mailboxes of select set of CRM users and queues that have their mailboxes on Microsoft Exchange Server 2010. This configuration is preferable as the impersonation rights are given selectively on the desired mailboxes only.
To enable this scenario, you need to define the set of users as a Management Scope in Microsoft Exchange Server 2010. To do so, run the following command in Exchange Management Shell–
New-ManagementScope –Name: "ManagementScopeName"
–RecipientRestrictionFilter { Name -eq ‘ crmuser1 ’ }
In the above command, The Name parameter specifies the name of the management scope. The RecipientRestrictionFilter parameter specifies the filter to apply to recipient objects.
[Details on New-ManagementScope can be found here]
The new Management Scope created can now be used in the Role Assignment command to restrict the scope of Exchange Impersonation.
New-ManagementRoleAssignment –Name: "ImpersonationName”
-User: "RouterAdministrator@YourOrganization.com" –Role:"ApplicationImpersonation”
-CustomRecipientWriteScope: ”ManagementScopeName”
Removing Exchange Impersonation permission.
Exchange Impersonation permission can be removed using the
Remove-ManagemntRoleAssignment command.
[Details on Remove-ManagemntRoleAssignment can be found here]
Microsoft Dynamics CRM
Configure users and queues to use Microsoft Dynamics CRM E-mail Router.
Users and Queues in CRM can be configured to use the E-mail Router for processing the incoming Exchange and outgoing CRM e-mails. To utilize this functionality, Users and Queues must have a valid email address and select E-mail Router as the incoming and outgoing E-mail access types. This can be setup by an administrator or users having relevant permissions.
CRM Users
1. Navigate to Settings->Administration->Users and configure the user record as displayed.
- Individual users can select which e-mails from the specified Exchange On-Premise mailbox to Track in CRM. This can be selected from the Tools->Options-> E-mail tab.
CRM Queues
- In line with Users, Queue form also provides the flexibility to choose the desired category of e-mails which need to be promoted to Microsoft CRM.
After the Router has been installed, launch the E-mail Router Configuration Manager from Start-> All Programs-> Microsoft Dynamics CRM E-mail Router. There are three main tabs in the Configuration Manager as shown below.
Configuration Profiles. To configure the E-mail Router, you first create one or more incoming and one or more outgoing configuration profiles. These configuration profiles contain information about the e-mail server and authentication methods that the E-mail Router will use to connect to the e-mail server and transfer e-mail messages to and from the Microsoft Dynamics CRM organization. You create configuration profiles on the Configuration Profiles tab in the E-mail Router Configuration Manager.
Deployments. After you create the configuration profiles that you want, you must define at least one deployment. The information that you enter into the Deployment area will be used by the E-mail Router to connect to your Microsoft Dynamics CRM deployment.
Users, Queues and Forward Mailboxes. After you have the configuration profiles and deployment established, then you manage the users, queues, and forward mailboxes that will be used by the E-mail Router to route Microsoft Dynamics CRM e-mail messages. You manage these items on the Users, Queues, and Forward Mailboxes tab in the E-mail Router Configuration Manager.
Creating Exchange Server 2010 incoming profile.
- In the E-mail Router Configuration Manager tool, click the Configuration Profiles tab, and then click New.
- Type a profile name. For example, type Exchange 2010 Incoming Email.
- Choose Incoming in the Direction list.
- Choose Exchange Web Services as the Protocol.
- Choose Exchange 2010 as the E-mail Server Type.
- The only Authentication Type allowed is “Windows Authentication”.
- Type the name of the Microsoft Exchange Server 2010 web services URL.
https://<Exchange-2010-Server-Name>/EWS/Exchange.asmx
8. Select how the e-mail Router will gain access to the Microsoft Exchange Server 2010 in the Access Credentials list.
- If you select Local System Account for the Profile, the Router will use the credentials specified in the Microsoft CRM Email Router service running in the host machine. The credentials provided should be the username of user in your Microsoft Dynamics CRM organization who has the System Administrator role. This user must have Exchange Impersonation permission on the mailboxes that this Incoming Profile will serve including self. This type of profile is typically used for polling large number of mailboxes using the credentials of a user with Administrative privileges and Exchange Impersonation permissions.
- If you select User Specified for the Profile, the Router will use the user name and password provided in Microsoft Dynamics CRM for users who are configured to use this Incoming Profile.
- If you select Other Specified for the Profile, the Router will use the user name and password provided in the open textboxes as shown below. User name has to be provided in the form DomainName\UserName. The specified user must have Exchange Impersonation permission on all the mailboxes that this Incoming Profile will serve (Exchange Impersonation Permissions on self is not required).
Creating Exchange Server 2010 outgoing profile.
Microsoft Dynamics CRM 4.0 Email Router (On-Premise) with Update Rollup 8 supports SMTP as the default and only protocol for outgoing e-mail messages as in the case of previous versions.
- In the E-mail Router Configuration Manager tool, click the Configuration Profiles tab and then click New.
- Type a profile name. For example, type Exchange 2010 Outgoing Email.
- Choose Outgoing in the Direction list.
- The only Protocol allowed is SMTP.
- Verify that SMTP is selected as the E-mail Server Type.
- Choose the Authentication Type as appropriate.
- Type only the name of the Microsoft Exchange Server 2010 system in the Location field.
- Check SSL box if the Microsoft Exchange Server 2010 uses SSL for SMTP.
- Select and provide the appropriate Access Credentials with Exchange Impersonation permission as required. [See section on Granting Exchange Impersonation permission for details]
After you have created the outgoing and incoming e-mail profiles, click the Deployments tab in the E-mail Router Configuration Manager tool.
- Click New to create a new deployment. The default Deployment option will be set to My Company.
- In the Microsoft Dynamics CRM Server open text box it will default to http://discovery/<OrganizationName>. Replace discovery with the name of the Microsoft Dynamics CRM On-Premise Server and <OrganizationName> with your Microsoft Dynamics CRM Organization Unique Name.
Note: The Organization Unique Name is case-sensitive. - Verify that Microsoft Dynamics CRM secure URL Port contains valid value if the CRM server is SSL enabled.
- Select how the e-mail Router will gain access to the Microsoft Exchange Server 2010 in the Access Credentials list.
- If you select Local System Account, the Router will use the credentials specified in the Microsoft CRM Email Router service running in the host machine.
- If you select Other Specified, the Router will use the user name and password provided in the open textboxes as shown below. User name has to be provided in the form DomainName\UserName.
- In the Outgoing configuration profile, select the outgoing profile you created.
Note: Setting the Incoming and Outgoing configuration profiles on the Deployment will make these the default profiles for the users that are set to use the E-mail Router for incoming and outgoing e-mail. You can change it for each user in the Users, Queues and Forward Mailboxes tab. - Click OK to finish creating the deployment.
Forward Mailbox is one of the options available for processing the incoming e-mails in Microsoft CRM. This option is helpful in scaling the system where all the Forward Mailbox users and queues have all their e-mails forwarded to the Forward Mailbox using Exchange forwarding rules. Emails for multiple users and queues are present in this single E-mail box as an attachment and hence Router can promote them to Microsoft Dynamics CRM using the single polling location. Users and Queues can have this options set for incoming e-mails processing as follows.
- Users: Settings->Administration->Users
- Queues: Settings->Business Management-> Queues
Set up the Forward Mailbox.
- Open the Microsoft Dynamics CRM E-mail Router Configuration tool.
- Click the Users, Queues and Forward Mailboxes tab.
- In the Select a CRM Deployment to view users and mailboxes list, select the Microsoft Dynamics CRM deployment you created.
- Click Load Data. This will display the Microsoft Dynamics CRM users who are configured to use the Email Router for processing their e-mails.
Note: If you receive an error displaying the users, verify the correct organization name is listed in the Select a CRM Deployment to view users and mailboxes list. Also, verify the organization name is entered with the correct case. The organization name is case-sensitive.
Note: If no users are listed after you click Load Data, or if you are missing users, check the user’s settings by following the steps in the section titled “Configure users and queues to use Microsoft Dynamics CRM E-mail Router.” - Click the Forward Mailboxes tab, and then click the New.
- Type a name for the forward mailbox profile. For example type ForwardMailbox in the Name open text box.
- Type the e-mail address for the forward mailbox in the E-mail Address open text box.
- Click OK.
In order to use the forward mailbox feature Microsoft Exchange Server 2010 users need to manually create rules on their own mailboxes from OWA or using Outlook client. This can be done by using the Rule Deployment Wizard for Microsoft Exchange Server 2007 and earlier systems. In Microsoft Exchange Server 2010 they will need to manually setup a rule with the following logic:
Forward All e-mails as An Attachment to <a mailbox you defined in your system>
This rule will forward all incoming e-mail to the Microsoft Dynamics CRM forwarding mailbox. After the rules have been deployed, any e-mail that is received in a user’s mailbox will be forwarded as an attachment to the forwarding mailbox. The Microsoft Dynamics CRM E-mail Router Service monitors the forward mailbox. The service will route Microsoft Dynamics CRM e-mail to Microsoft Dynamics CRM as an e-mail activity. If the e-mail is not related to Microsoft Dynamics CRM, the service will delete the e-mail message from the forwarding mailbox.
Test and publish the new incoming /outgoing profiles and deployment.
The final step is to publish new incoming profiles, the deployment and forward mailbox settings. Before publishing, connectivity to all mailboxes using the specified profiles must be tested. To do this, complete the following steps:
- Click the Users, Queues and Forward Mailboxes tab within the E-mail Router Configuration Manager tool.
- In the Select a CRM Deployment to view users and mailboxes list, select the Microsoft Dynamics CRM deployment you created.
- Click Load Data. This will display the Microsoft Dynamics CRM users configured to use the e-mail Router.
- If you want to change the Incoming or Outgoing configuration profiles for certain users, double click the user and change the selection for the Incoming Configuration Profile or Outgoing Configuration Profile and click OK.
- Click Test Access. Tests will be performed on all users for both profiles. A successful test will display a green succeeded message that resembles the following:
- To publish the deployment, click Publish. A successful publish will display the following message:
On publishing the Router will start catering the Microsoft CRM Users and Queues having the Microsoft Exchange Server 2010 mailboxes.
Cheers,
[http://blogs.msdn.com/crm/archive/2009/12/21/how-to-configure-microsoft-dynamics-crm-4-0-e-mail-router-on-premise-with-microsoft-exchange-server-2010.aspx]
MS Exchange has many unknown capabilties. But one of them I used some days ago and something happened with my program. Luckily for me I quickly found out a tool at the Inet. It astonished me for some minutes having managed all my old issues. And I'm sure the tool would cope with all problems with ms exchange - exchange edb repair tool.
ReplyDelete