Configuring EXM in a scaled environment

Abstract

Configure EXM to work in a scaled environment.

If you are working with Sitecore in a scaled environment, you must configure the Email Experience Manager (EXM) to work within this environment.

A scaled environment usually consists of one content management server (CM) and one or more content delivery (CD) servers. You can configure servers for a specific purpose (for example, content management, content delivery, or processing) by enabling or disabling the relevant configuration files on each Sitecore instance.

In the standard multiserver Sitecore environment, all the content management and content delivery instances share the Core and Web databases and all the content management instances share the Master database. This means that you have to use the same connection strings to the databases for the configuration file of each server.

The following diagram illustrates the connections between the servers and the content databases in a standard multiserver Sitecore setup:

EXM in a scaled environment

Email messages are dispatched from the primary CM server and each dedicated dispatch server (DDS). 

Note

Make sure you also configure the List Manager for the scaled environment.

To configure a content management server:

  1. Install Sitecore Experience Platform and configure it according to the Sitecore scaling recommendations for content management servers.

    Note

    If you run Sitecore 8.1 update 3 or later updates, make sure to enable the interaction registry on your content management servers.

  2. Install the EXM module according to the EXM installation guide.

    Important

    The EXM installation package that you download from dev.sitecore.net includes five zip packages – the Email Experience Manager and four zip files that match specific server roles. Do not use the files intended for other servers on the content management server.

  3. In the \App_Config\Include\EmailExperience\ folder, enable the Sitecore.EmailExperience.ContentSearch.Solr.config file.

To configure a content delivery server:

  1. Install Sitecore Experience Platform and configure it according to the Sitecore scaling recommendations for content delivery servers.

    Important

    In the Sitecore.Analytics.Tracking.config file, ensure that the value of the Analytics.ClusterName setting is the hostname of the content delivery server. This is required for a scaled environment to avoid contacts being locked when running EXM. If there is more than one content delivery server in your environment, use the same value for each server.

    In addition, make sure that the content management server can reach the content delivery server through HTTP using the hostname that you have specified in the Analytics.ClusterName setting of the content delivery server.

  2. Add a connection string to the EmailCampaignClientService web service, for example:

    <add name="EmailCampaignClientService" connectionString="url=http://<CMServerHost>/sitecore%20modules/web/emailcampaign/ecmclientservice.asmx;timeout=60000" />
    
  3. In the \App_Config\ConnectionStrings.config file:

    • Add the exm.web connection string, for example:

    <add name="exm.web" connectionString="user id=user;password=password;Data Source=(server);Database=Sitecore_EXM_WEB" /> 
    
    • Add the two connection strings EXM.CryptographicKey and EXM.AuthenticationKey. Each key must be a hexadecimal 64-character string and must be the same across all servers. The CryptographicKey and AuthenticationKey are used to encrypt/decrypt data.

  4. Extract the relevant Email Experience Manager – Content Delivery package to your website root folder on the content delivery server.

  5. If you no longer want to use the primary CM server as a content delivery server, disable the Sitecore.EmailExperience.ContentDelivery.config configuration file and remove any Sitecore.EmailCampagin.Cd*.dll assemblies from the bin folder.

To configure a processing server for Analytics data processing and aggregation:

  1. Install Sitecore Experience Platform and configure it according to the Sitecore scaling recommendations for processing servers.

  2. Extract the relevant Email Experience Manager - Analytics Processing package to your website root folder on the processing server.

  3. Disable the Sitecore.EmailExperience.AnalyticsProcessing.LoadFields.config configuration file on the primary CM server to stop processing Analytics data.

To configure a reporting server:

  1. Install Sitecore Experience Platform and configure it according to the Sitecore scaling recommendations for reporting servers.

  2. Extract the relevant Email Experience Manager - Reporting package to your website root folder on the reporting server.

  3. Disable the Sitecore.EmailExperience.Reporting.config configuration file on the primary CM server to deactivate configuration that is only relevant for reporting servers.