Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Gojko_Che's avatar

Can not verify Mail Gun on Digital Ocean

I'm trying to verify my website, that's hosted on DO, with mailgun with no success. Followed every tutorial that I found, and waited for 48 hours to pass, but I can't seem to make it work.

Here is my zone file, of course I changed the domain name, and the key.

$ORIGIN mysite.com. $TTL 1800 mysite.com. IN SOA ns1.digitalocean.com. hostmaster.mysite.com. 1484983387 10800 3600 604800 1800 mysite.com. 1800 IN NS ns1.digitalocean.com. mysite.com. 1800 IN NS ns2.digitalocean.com. mysite.com. 1800 IN NS ns3.digitalocean.com. mysite.com. 1800 IN A 46.101.255.47 mysite.com. 1800 IN TXT "v=spf1 include:mailgun.org ~all" smtp._domainkey.mysite.com. 1800 IN TXT "k=rsa; p=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" email.mysite.com. 1800 IN CNAME mailgun.org. www.mysite.com. 1800 IN A 46.101.255.47

All the help will be appriciated.

0 likes
4 replies
ejdelmonico's avatar

If your NS are pointed towards DO then Mailgun will try to verify with the DO NS and not your domain service provider. Also, DO requires double quotes around text values.

Also, I have never had the Mailgun or Google text file verifications take longer than 15 minutes to propagate on modern networks.

Gojko_Che's avatar

Hi, thank you for your response,

Unfortunately, I did add double quotes, and I tried to verify it with DO, but no success. I will try again, if it doesn't work I'm going to use google.

ejdelmonico's avatar

I wouldn't give up, I use mailgun on 7 DO servers without a problem. However, I do not use DO DNS services because of the issues that occurred with the Linode attack....doing so is not recommended to increase availability in case of DDOS. I just point my domain to my DO VM.

Gojko_Che's avatar

They responded me from DO, and from MailGun, and said it was all set up correctly. But it didn't work :). Since it is a small app, I decided to go with gmail. Thanks for your suggestions.

Please or to participate in this conversation.