Question

Failed to verify domain on Mailgun

  • Posted October 16, 2013

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

The other records (CNAME and MX) are fine.

Subscribe
Share

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

I published a short article outlining the setup at

https://medium.com/@a4word/setting-up-mailgun-on-digital-ocean-bd7d74e501f0#.ryosvs3x7


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 smtp._domainkey.yourdomain.com.

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
example.com “v=spf1 include:mailgun.org ~all”
krs._domainkey "k=rsa;
p=165CHARACTERPASSWORDSTRING"
@ “v=spf1 include:mailgun.org ~all”
krs._domainkey.litecampus.com
"k=rsa; p=165CHARACTERPASSWORDSTRING"

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?

RECORD TYPE NAME VALUE
TXT my.domain.com “v=spf1 include:mailgun.org ~all”
TXT pic._domainkey.my.domain.com “k=rsa; p=165CHARACTERPASSWORDSTRING”
CNAME email.my.domain.com mailgun.org

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.