Publish a DKIM TXT record provided by Mailgun to enable cryptographic email signing for your sending domain.
TXT
smtp._domainkey
v=DKIM1; k=rsa; p=YOUR_PUBLIC_KEY_FROM_MAILGUN
Mailgun generates a unique DKIM key for each domain. The default selector is smtp or a domain-specific selector.
Go to app.mailgun.com and sign in.
Go to Sending > Domains and select your verified domain.
Mailgun displays the DKIM TXT record with the selector and public key. Copy both the host name and value.
Create a TXT record in your DNS provider with the host and value from Mailgun.
smtp._domainkey.yourdomain.com TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSq..."Click "Verify DNS Settings" in Mailgun. It will check the DKIM record.
After adding your DNS records, use our free DKIM checker to verify everything is configured correctly. DNS changes typically propagate within minutes, but can take up to 48 hours.
Mailgun typically uses smtp as the DKIM selector, but newer accounts may use different selectors. Check your Mailgun domain settings for the exact selector.
Mailgun uses a TXT record for DKIM containing the public key directly, unlike some providers that use CNAME records.
Yes. You can regenerate DKIM keys in the Mailgun dashboard. After regenerating, update the DNS TXT record with the new public key.