Domain still unverified after 48hrs in mailgun

September 28, 2015 3.2k views
DNS Email

I have followed http://code.krister.ee/mailgun-digitalocean/ this tutorial to get mailgun working but even after 48 hrs my domain is still not verified. What could be the reason?

5 comments
  • If you're using digitalocean DNS it should be quick (for me around 5-10 mins).

    Could you copy & paste your DNS config (grey info box below DNS setup that shows all the details).

    P.S: Don't forget to replace your domain name with example.com before posting :)

  • @sugarhill

    $ORIGIN www.example.com.
    $TTL 1800
    www.example.com. IN SOA ns1.digitalocean.com. hostmaster.www.anjuoz.com. 1443431828 10800 3600 604800 1800
    www.example.com. 1800 IN NS ns1.digitalocean.com.
    www.example.com. 1800 IN NS ns2.digitalocean.com.
    www.example.com. 1800 IN NS ns3.digitalocean.com.
    www.example.com. 1800 IN A 104.236.72.184
    www.www.example.com. 1800 IN CNAME www.example.com.
    www.example.com. 1800 IN TXT "v=spf1 include:mailgun.org ~all"
    mailo._domainkey.www.example.com. 1800 IN TXT "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCiTSxMFfxEepSlanL6/0VoIom0EVyoou64DeYrnTkE40c30ZAnledGuC3U23EBBTPIZylj7gc0IhFfK0uxWb4ZBtT+l510OSGRSpE1i/kZO2qbFsrJoJdtaWDo9kDRvzKVBdSokJFma4YYmccRN1xf2uZ5OXdCrrarolavn5I0qwIDAQAB"
    www.example.com. 1800 IN MX 10 mxa.mailgun.org.
    www.example.com. 1800 IN MX 10 mxb.mailgun.org.
    email.www.example.com. 1800 IN CNAME mailgun.org.
    
  • Ok let's start from the beginning to make this work

    1. change your A record from "www.example.com" to "example.com" (remove "www")

    2. change cname from "www.www.example.com." to just "www" (you actually did this before, but now the second www will not be added since you changed A record. So simply just put in "www" as before)

    3. then change cname "email.www.example.com" to just "email" (you also did this before, but again now the www doesn't get added). This is what prevented mailgun from validating.

    After these changes it should work :)

    P.S: "www.example.com. 1800 IN MX 10 mxb.mailgun.org." is duplicate in your mx record. The duplicate should be another mailgun server with a different value then "10" (e.g. 20). Don't know since I only use mailgun for transactional email (mails send by system) and not to actually receive emails. For receiving emails free I recommend "zoho.com" (while you can still keep mailgun for your system)

  • I'm running into the same issue, this is a lot more complicated than I thought. Been searching and trying so many combinations for a while now.

  • @sugarhill Could you also help here?

    Zone File
    $ORIGIN shopselfie.com.
    $TTL 1800
    shopselfie.com. IN SOA ns1.digitalocean.com. hostmaster.shopselfie.com. 1461065419 10800 3600 604800 1800
    shopselfie.com. 1800 IN NS ns1.digitalocean.com.
    shopselfie.com. 1800 IN NS ns2.digitalocean.com.
    shopselfie.com. 1800 IN NS ns3.digitalocean.com.
    my.shopselfie.com. 1800 IN A 46.101.252.20
    *.my.shopselfie.com. 1800 IN CNAME my.shopselfie.com.
    shopselfie.com. 1800 IN A 162.243.244.136
    shopselfie.com. 1800 IN MX 1 aspmx.l.google.com.
    shopselfie.com. 1800 IN MX 5 alt1.aspmx.l.google.com.
    shopselfie.com. 1800 IN MX 5 alt2.aspmx.l.google.com.
    shopselfie.com. 1800 IN MX 10 alt3.aspmx.l.google.com.
    shopselfie.com. 1800 IN MX 10 alt4.aspmx.l.google.com.
    *.shopselfie.com. 1800 IN CNAME shopselfie.com.
    mailgun.org.shopselfie.com. 1800 IN CNAME email.shopselfie.com.
    shopselfie.com. 1800 IN TXT "v=spf1 include:mailgun.org ~all"
    smtp._domainkey.shopselfie.com.shopselfie.com. 1800 IN TXT "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOaSP4GgmmfhyU1E/cleYCekDB4LEm5Pbrp/HXlolP4G23PSu4QvCOaXx5nXGyLwzkA2jD/YHOG3bT4HKv/EkRXDDja+aZ2P5sjHKdHW5SIACwgMzWfqyJqVPQROebdel9lC3fw5bo2PD51NpZJX0hlhmKLzIDwkLmsdNrMBTXRwIDAQAB"
    www.shopselfie.com. 1800 IN CNAME shopselfie.com.

1 Answer

This question was answered by @sugarhill:

Ok let's start from the beginning to make this work

  1. change your A record from "www.example.com" to "example.com" (remove "www")

  2. change cname from "www.www.example.com." to just "www" (you actually did this before, but now the second www will not be added since you changed A record. So simply just put in "www" as before)

  3. then change cname "email.www.example.com" to just "email" (you also did this before, but again now the www doesn't get added). This is what prevented mailgun from validating.

After these changes it should work :)

P.S: "www.example.com. 1800 IN MX 10 mxb.mailgun.org." is duplicate in your mx record. The duplicate should be another mailgun server with a different value then "10" (e.g. 20). Don't know since I only use mailgun for transactional email (mails send by system) and not to actually receive emails. For receiving emails free I recommend "zoho.com" (while you can still keep mailgun for your system)

View the original comment

Have another answer? Share your knowledge.