Skip to content

Instantly share code, notes, and snippets.

@Dweez
Created October 16, 2015 11:41
Show Gist options
  • Save Dweez/9f6097427e0dc5faf7cd to your computer and use it in GitHub Desktop.
Save Dweez/9f6097427e0dc5faf7cd to your computer and use it in GitHub Desktop.
Gandi subdomain DNS configuration for Mailgun validation
# Gandi subdomain DNS configuration for Mailgun validation
# - Add the SPF record as TXT and SPF
# - Suffix the DKIM record and `email` CNAME with the subdomain
# ex: `mg.domain.com`
mg 10800 IN CNAME mailgun.org.
@ 10800 IN SPF "v=spf1 include:mailgun.org ~all"
@ 10800 IN TXT "v=spf1 include:mailgun.org ~all"
mailo._domainkey.mg 10800 IN TXT "k=rsa; p=MIG...QAB"
email.mg 10800 IN CNAME mailgun.org.
@ 10800 IN MX 10 mxa.mailgun.org.
@ 10800 IN MX 10 mxb.mailgun.org.
@ailaire
Copy link

ailaire commented Mar 3, 2017

Thank you for this, it was very helpfull. I made some modifications though :

  • Since I configure a sub-domain <mg.mydomain.tld>, I replace @ by mg
  • The mg CNAME doesn't seem necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment