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.
- Account Access
- Add Domains
- Add DNS Records
- Verify Settings
- go to https://www.mailgun.com/
- LOG IN to the mailgun site by clicking the button in the top right
Image Removed
Image Added
2. Add Your Domain(s)
- On the mailgun dashboard page, click Domains
Image Removed
Image Added
- Then, click Add New Domain
Image Removed
Image Added
- On the Add Your Domain page, enter your subdomain
Image Modified
- Click Add Domain
Image Removed
Image Added
3. Add Your DNS Records
- Make note of the SENDING records:
Image Modified
- As well as the TRACKING records:
Image Removed
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 Removed
Image Added
- For example:
Image Modified
- Then, set up a second TXT record for your SMTP domain key from the contents provided
Image Removed
Image Added
- For example:
Image Modified
- Next, create an MX record for your_subdomain_name with the following contents:
Image Removed
Image Added
- For example:
Image Modified
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 Removed
Image Added
- For example:
Image Modified
Once all of the DNS records have been created, return to the mailgun dashboard and click Continue to Domain Overview
Image Removed
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 Modified
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.

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.

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