Failed to verify domain on Mailgun

  • Posted October 16, 2013

I can’t seem to get verified on due to the two TXT DNS records. I have added double quotes for the value fields.

The other records (CNAME and MX) are fine.


The comments in this post help get me all setup with Mailgun, thank you!.

I published a short article outlining the setup at

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This had me stumped at first, too. <br> <br>In addition to putting the values in double-quotes, what solved it for me was using @ as the hostname for the first record (instead of the full domain name, as indicated by Mailgun) and for the second, smtp._domainkey instead of

Put the TXT values in " (double quotes), this should fix the problem.

Mine is not hosted at digitalocean but Hetzner. This is to CONFIRM that removing the domain name after key string WORKS both on GoDaddy AND Namecheap.

So I only put: krs._domainkey (for my godaddy one, without the domain name) and mailo._domainkey (for my namecheap one).

Actually mailgun have put them on bold (which I guess it means that we only need to insert the blacked letters but this is not really clear.

Also for pic._domainkey, REMOVE ALL SPACES. This thread is a goldmine! thanks everyone!

To add my answer:

I added the following records - including the quotes:

Name Text “v=spf1 ~all”
krs._domainkey "k=rsa;
@ “v=spf1 ~all”

I think that just the first two are needed, but now that it is working I’m not editing.

*how to add rows to the table in this editor?

This comment has been deleted

@GabrielM I would double check what the actual zone file shows in the area underneath where you enter DNS changes . Also make sure to use " on the pic._domainkey

I try all the methods described above…without success.

After reading the above discussion, I still find this confusing to follow. Is there someone who can verify the following? If it’s wrong, please leave an example of what works so that anyone else who comes here gets a clear explanation. For example, should I be dropping the domain name from the cname entry?

TXT “v=spf1 ~all”

Also you need to drop the domain name from the cname entry for tracking clicks. From this: email.<your domain> to just email. That validated for me as well where as it had not before. Yes, they need to update their docs.