Omnichannel email campaigns use Mailgun to relay messages. This article outlines the steps needed to connect Mailgun to your domains.

For details on configuring an Omnichannel email campaign using a mailgun account that has already been configured, click here.

  1. Account Access
  2. Add Domains
  3. Add DNS Records
  4. Verify Settings


1. Mailgun Account Access
This access is client-specific. For mailgun account info, contact your Account Executive who will provide you with login details.


2. Add Your Domain(s)

  • On the mailgun dashboard page, click Domains
    Image Added

  • Then, click Add New Domain
    Image Added

  • On the Add Your Domain page, enter your subdomain
    Image Added

  • Click Add Domain
    Image Added


3. Add Your DNS Records

  • Make note of the SENDING records:
    Image Added

  • As well as the TRACKING records:
    Image Added

On Your DNS Provider:

Add the DNS Records for Sending

  • Create a TXT record for your_subdomain_name from the contents provided 
    *TXT records (known as SPF & DKIM) are required to send and receive email with Mailgun.
    Image Added
    • For example: 
      Image Added

  • Then, set up a second TXT record for your SMTP domain key from the contents provided
    Image Added
    • For example:
      Image Added

  • Next, create an MX record for your_subdomain_name with the following contents:
    Image Added
    • For example:
      Image Added

Add the DNS Records for Tracking

  • Create a CNAME for your_subdomain_name with the value provided
    *The CNAME record is necessary for tracking opens, clicks, and unsubscribes.
    Image Added
    • For example:
      Image Added

Once all of the DNS records have been created, return to the mailgun dashboard and click Continue to Domain Overview
Image Added

Image Added
You may see alerts that the DNS records are not found. This is normal. Please wait the requested 24-48 hours for the changes to propagate.
Image Added
You may click Check DNS Records until it finds all of them.


4. Verify Your Settings

Once all DNS records have been found, the Domain status will display as Active.
Image Added
Click the domain name to view its settings, and make note of the API key, which will be needed during the Omnichannel Campaign creation process.

Image Added


*For step-by-step instructions on configuring an Omnichannel email campaign, click here.