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


Supports SPF Supports DKIM

How to Enable SPF for Mailgun


To set up your SPF record with Mailgun or edit your current SPF record to include Mailgun, follow the steps below:

  1. Sign in to your domain account at your domain host
  2. Locate page for updating your domain’s DNS records (e.g., DNS Management, Name Server Management, Advanced Settings)
  3. Find your TXT records to check if you have an existing SPF record (record will start with v=spf1).
  • If you have an existing SPF record, follow the instructions below to update an existing SPF record with multiple mail servers.
    • In your existing SPF record, you will append
    • For example, if your existing record looked like v=spf1; mx; ip4:; you would add the above include as follows v=spf1; mx; ip4:;;
  • If you do not have an SPF record, Create a new TXT record with the following values:
    • In the Name/Host/Alias field, enter @ or leave blank (other DNS records might indicate which one you need)
    • In the Time to Live (TTL) field, enter 3600 or leave the default
    • In the Value/Answer/Destination field, enter: v=spf1 ~all and Save the TXT record


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 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 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 v=spf1 ~all


SPF record include added:

HOST TEXT v=spf1 ~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.


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 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.