MTA Configuration In Sitecore

Email Experience Manager (EXM), formerly Email Campaign Manager (ECM), is a key toolset in completing the engagement cycle with site visitors. A properly managed email campaign will allow you to further engage your site visitors after they have left visiting the site. By leveraging Sitecore to manage this, you a) cut out requirements to purchase and maintain another toolset, b) can leverage site visit data to better target email messages, and c) all data is collected into a single source for well-rounded reporting.

A Little EXM Background

EXM does not come pre-installed in a Sitecore installation. It must be downloaded and installed after the initial site setup. When looking to install, you need to make sure that you install the correct version for your Sitecore instance. A list of all available versions can be found at One thing to note for the advanced editor looking to explore EXM, is that downloads of the products are only available to those who have been awarded a Sitecore Developer Certificate, so talk with your Sitecore Partner or Sales Rep for more information.

I will point out that, in the past year and a half, Sitecore has gotten much better at matching EXM (and WFFM for that matter) versions to that of the core Experience Manager (CMS). Here is a helpful table to assist you pinpoint which version you want.

Sitecore Experience Manager EXM URL
8.1 rev. 151207 (Update-1) 3.2 rev. 160127 (Update-1)
8.1 rev. 151003 (Initial Release) 3.2 rev. 151020 (Initial Release)
8.0 rev. 151127 (Update-6) 3.1 rev. 151213 (Update-2)
8.0 rev. 150812 (Update-5) 3.1 rev. 150811 (Update-1)
8.0 rev. 150621 (Update-4) 3.1 rev. 150811 (Update-1)
8.0 rev. 150427 (Update-3) 3.1 rev. 150703 (Initial Release)
8.0 rev. 150427 (Update-3) 3.0 rev. 150429 (Update-3)
8.0 rev. 150223 (Update-2) 3.0 rev. 150223 (Update-2)
8.0 rev. 150121 (Update-1) 3.0 rev. 150126 (Update-1)
8.0 rev. 141212 (Initial Release) 3.0 rev. 141217 (Initial Release)

How do Emails Send

EXM provides an interface to create emails, schedule sends, build recipient lists, and track read and bounced message data on your emails. It does NOT perform the actual technical send of the email! EXM must call to an actual email sending service, also called a Mail Transfer Agent or MTA.

A default install of EXM is configured for you to purchase sending capabilities directly from Sitecore via the Sitecore App Center. This may be perfect once everything has been elevated into production, but will not be the best solution for a QA or development environment. If you are a super high volume sender, Sitecore’s offering may not be cost effective for your organization.

Thankfully, as with most things in Sitecore, there is usually another option that involves a little extra configuration work, and in this scenario, that would be the ‘UseLocalMTA’ flag.

Setup for a non-Sitecore MTA Usage

  • To be able to send via other Mail Transfer Agents, your Sitecore license must include a specific flag. This is flag is not always included by default, so reach out to your Sitecore sales representative or Sitecore Partner to for more information.
    • If you have configured Local MTA, but have not updated your license file, you may receive an error message similar to the following:
      “The Sitecore App Center password is not set.”
      MTA Configuration in Sitecore - Image One

    Your license does not allow you to use a specific MTA to send messages. Contact your Administrator or Sitecore representative.
    MTA Configuration in Sitecore - Image Two

  • Configure EXM to talk with your chosen MTA provider. The settings are all contained in App_Config \ Include \ EmailExperience \ Sitecore.EmailExperience.ContentManagement.config, which you can happily edit directly…which would be a big Sitecore NO-NO! Instead, use the following patch file that is to be placed into your ‘z.loadlast’ directory in App_Config \ Include. [“The z.what the hell directory” you ask, take a look at my post How Sitecore Config Files Load.]

    [Download from GIST –]

Using Amazon SES as your Mail Transfer Agent

If you are looking for an excellent production alternative to Sitecore’s services, Amazon SES is most likely on your radar. Getting configured for sending is fairly quick, especially when using a patch config file to load your settings. From a development and QA perspective, if you are able to stay under the messaging limits, Amazon SES is an excellent alternative to a standalone SMTP server.

  1. Create a new Amazon Web Services (AWS) account or login to your existing account
  2. From the list of available services pick SES
    1. MTA Configuration in Sitecore - Image Three
  3. Once in SES, we need to verify one or more email address that messages will be sent from. If you are running as a free test account, the email addresses for recipients of the messages must also be verified. Click “Email Addresses” from the left-side menu 
    1. MTA Configuration in Sitecore - Image Four
  4. Create SMTP Credentials, by clicking on “SMTP Settings” in the left-side menu
  5. Click the large blue button for Create My SMTP Credentials in the center of the page 
    1. MTA Configuration in Sitecore - Image Five
  6. Amazon provides a nice wizard that walks you through getting your SMTP Credentials. Follow these steps and be sure to download/copy the username and password that was generated for you 
    1. MTA Configuration in Sitecore - Image Six
  7. Updated the patch config based on the following notes:
    Setting Value
    UseLocalMTA True
    Sleep 500 (if you are running under the test account of AWS, there is a need to delay how quick the relay is)
    SMTP.Server Taken from the Server Name field in step 5
    SMTP.Port 25 (feel free to change to 465 or 587, as supported by Amazon)
    SMTP.UserName Username value from step 6, this is what you should have downloaded. Do NOT use your AWS account name, as it will not authenticate
    SMTP.Password Password value from step 6, this is what you should have downloaded. Do NOT use your AWS account password, as it will not authenticate
    SMTP.AuthMethod LOGIN (this must be in all CAPS)
    SMTP.StartTLS True (as defined in the under SMTP Settings in SES)
  8. Login to Sitecore and send a test email. Make sure the sending address has been verified or you will receive errors

The above gives the basics for email setup using another mail transfer agent. For some of the more complicated setup or to learn more, here are some references to Sitecore’s documentation.

As always, feel free to tweet me questions or comments @thecodeattic or on Sitecore Slack Community as @gillissm

[Originally appeared at]


One thought on “MTA Configuration In Sitecore

  1. Pingback: EXM 3.4 Support for a Local MTA | The Code Attic

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 )

Google photo

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

Twitter picture

You are commenting using your Twitter 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.