DKIM works by assigning a cryptographic signature to your outbound messages, this signature contains a private key that is matched against the public key that exists in your domain’s DNS by the receiving MTA. This helps authenticate the sending source of the messages. In order to setup DKIM for Mailgun using your custom domain, follow these steps:
Steps to Configure DKIM for Mailgun
In order to configure DKIM for Mailgun, you need to verify your custom domain.
Login to your Mailgun account
Go to the Domains tab
Click on your domain: mail.yourdomain.com (or add your domain in case you haven’t already done so like shown below)
On the domain settings page, you will find the DKIM records generated for your domain in the Domain Verification & DNS section
Copy the DKIM records to your keyboard
Login to your domain’s DNS management console
Paste the DKIM records in your DNS ( resource type: TXT; Name/Host: ._domainkey.mail.yourdomain.com )
Wait for some time for your DNS to process these changes (it can take up to 24 hours)
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.
Sign up for our free DMARC analyzer today!