Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 10800 IN CNAME
@ 10800 IN SPF "v=spf1 ~all"
@ 10800 IN TXT "v=spf1 ~all" 10800 IN TXT "k=rsa; p=MIG...QAB" 10800 IN CNAME
@ 10800 IN MX 10
@ 10800 IN MX 10
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

Copy link

sekoyo commented Mar 5, 2018

@ailaire thanks for the comments, also trying to configure gandi. So to be clear each entry that begins with @ you replace with your subdomain name?, so:

mg 10800 IN SPF "v=spf1 ~all"

etc? Also did you get rid of all of gandi's default ones for their services there?

Copy link

Shivawkes commented Mar 20, 2018

Gonna jump in here since I'm doing this now. I did get rid of Gandi's default records for their services and it works.

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