Mailgun DKIM Setup 

DKIM (DomainKeys Identified Mail) is an email authentication protocol that uses cryptographic signatures to ensure your messages haven’t been altered during delivery and truly originate from your domain.

This guide explains how to set up DKIM for Mailgun, a powerful email delivery service designed for developers and businesses that need reliable, scalable email sending.

Mailgun DKIM Requirements

To configure DKIM for MailGun, you will need to add specific DNS records provided by MailGun and complete the verification process in their platform. 

Step-by-Step Instructions 

  1. Log in to your MailGun account. 
  2. Navigate to the Domains tab in the dashboard.  
  3. Select your domain from the list or click to add a new domain if it hasn’t been set up yet. Mailgun Dkim Screenshot 1
  4. On the domain settings page, you will find the DKIM records generated for your domain in the Domain Verification & DNS section.
  5. Copy the DKIM records.
  6. Login to your domain’s DNS management console. Alternatively, you can add the keys to Sendmarc, if you’re using our platform for DKIM management and skip to step 9.
  7. Paste the DKIM records in your DNS.
  8. Save changes.
  9. Wait for some time for your DNS to process these changes (it can take up to 24 hours).
  10. Log back into your Mailgun account, and check for a verified status (a green verification badge) against your domain name to confirm that your domain has been verified and set up with DKIM email authentication. Additionally, you will also receive an email confirming your verification status from Mailgun.                 Mailgun Dkim Screensho 2
  11. Once you have completed the DNS Record setup please let us know in order to have the record confirmed and finalized.

    * Please ensure that you change <yourdomain.com> to the correct domain before publishing changes.

How to update your DKIM settings using Sendmarc

To update your DKIM record through Sendmarc, please refer to the Sendmarc DKIM Setup Documentation.

Mailgun’s Documentation

Mailgun’s official DKIM configuration guide can be found here.

Looking for SPF Settings?

Find out how to configure your Mailgun SPF settings here.