Providers

A - E
F - L
M - S
T - Z

Mailgun

Supports SPF Supports DKIM

DKIM & SPF Setup for Mailgun

 

SPF Setup for Mailgun

To set up or edit your SPF record, you will need to add: include:mailgun.org

Edit existing SPF record

  1. Log in to your DNS hosting provider
  2. Look for a TXT containing v=spf1
  3. In your existing SPF record, you will append include:mailgun.org
  4. For example, if your existing record looks like v=spf1; mx; ip4:1.2.3.4; you would add the above include as follows v=spf1; mx; ip4:1.2.3.4; include:mailgun.org

Create a new SPF record

  1. Follow the instructions from our How to Create a New SPF Record Guide.
  2. In the Value field, enter: v=spf1 include:mailgun.org ~all and Save the TXT record.

Records for Subdomains

If you are creating a record for a subdomain, you will want to make sure that you specify the sub part of the domain in the Host/Name/Alias field for most DNS providers.

  1. Enter the sub part of the domain, for example if the subdomain is mail.mxtoolbox.com you would want to enter mail into that field.
 

SPF and DMARC Alignment

To set up a custom bounce back email in Mailgun, you need to configure your DNS settings with the correct SPF and DKIM records provided by Mailgun. You'll also need to ensure your domain is verified within Mailgun's control panel. Additionally, you can configure webhooks or use the Mailgun API to handle bounce events and other feedback, allowing you to manage your suppressions list and improve deliverability.

 

How to Enable DKIM for Mailgun

 

  • 1. Go to the Domains tab and click on your domain
  • 2. You can find the DKIM record under the section for "Add DNS Records for Sending"
  • 3. Go to your DNS provider and add the DKIM Record
    You will add a TXT record with a Name/Host of ._domainkey.yourdomain.com which was provider in the Mailgun console

DKIM/SPF Setup Highlights

The below sections highlight notable characteristics of setting up DKIM and SPF for this provider as well as highlighting advanced settings if offered by this Outbound Email Source.

SPF

SPF Include Tag Required

This outbound email provider uses an include mechanism to add this provider's IP space to your SPF. To get fully set up with SPF for this provider, you will need to take the provided “include” domain and add it to your SPF record. An example of an SPF record without an include tag is compared to one with the tag added below (the include tags added are denoted in bold).

 

Initial SPF Record:

HOST TEXT
yourdomain.com v=spf1 ~all

 

SPF record include added:

HOST TEXT
yourdomain.com v=spf1 include:sender.net include:new3rdparty.com ~all

 

Allows custom Return Path

This outbound email provider allows for a custom Return-Path address to be setup. A custom return path, also known as a bounce-back address, is critical to pass SPF alignment.

DKIM

Supports DKIM Signing

Yes, this outbound email provider supports DKIM signing.

DKIM Setup via TXT record

This outbound email provider uses a TXT record to initiate DKIM set up. You will need to take the TXT record(s) provided to you by the provider and add them to your DNS via your DNS hosting provider.

An example of a DKIM TXT record is shown below.

HOST TEXT
s1.domainkey.yourdomain.com. k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPtW5iwpXVPiH5FzJ7Nrl8USzuY9zqqzjE0D1r04xDN6qwziDnmgcFNNfMewVKN2D1O+2J9N14hRprzByFwfQW76yojh54Xu3uSbQ3JP0A7k8o8GutRF8zbFUA8n0ZH2y0cIEjMliXY4W4LwPA7m4q0ObmvSjhd63O9d8z1XkUBwIDAQAB

This outbound email provider allows custom DKIM records to be setup.

DKIM Setup Process: Self-Service Dashboard

This email provider offers a self-service dashboard where DKIM records will be setup for the account. To get DKIM setup for this provider you will login to your account at this provider and proceed to the DKIM setup area.

burritos@banana-pancakes.com braunstrowman@banana-pancakes.com finnbalor@banana-pancakes.com ricflair@banana-pancakes.com randysavage@banana-pancakes.com