So I am currently setting up Mailgun with my domain name on DO.

I am setting the following for “mg.example.co.uk” as instructed by Mailgun:

  1. TXT record for: “mg.example.co.uk” with the value (no need to paste here)
  2. TXT record for: “mx._domainkey.mg.example.co.uk” with the value (no need to paste here)
  3. MX record: “mxa.mailgun.org”
  4. MX record: “mxb.mailgun.org”
  5. CNAME record: “email.mg.example.co.uk” with value: “mailgun.org”

I’ve added these to DO and they have translated to (hostname, value):

  1. TXT: “mg.example.co.uk.example.co.uk” with the value (no need to paste here)
  2. TXT: “mx._domainkey.mg.example.co.uk.example.co.uk” with the value (no need to paste here)
  3. MX record: “mg.example.co.uk.example.co.uk” with “mxa.mailgun.org.”
  4. MX record: “mg.example.co.uk.example.co.uk” with “mxb.mailgun.org.”
  5. CNAME record: “email.mg.example.co.uk.example.co.uk” with “mailgun.org.”

However when I click “Check DNS Records” on Mailgun, no luck. Any idea what I might be doing wrong here?

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.

×
3 answers

Hi @bookshelfbob

Have a look at this tutorial:
http://code.krister.ee/mailgun-digitalocean/

You should only input hostname into the control panel - it will append the domain.
So for example the CNAME record would be email.mg with mailgun.org.

It would help more with your real domain, if you want us to verify the DNS for you.

Hi,

I have followed all of your instructions and it works for every record except for:

TXT: “mx._domainkey.mg.example.co.uk”.

I get the impression that domain key should be substituted for something?

Sorry I would love to provide the real domain but it’s for a client.

  • What’s the name of the DKIM TXT record you’ve created in Mailgun?
    mx._domainkey with the domain mg.example.co.uk, then in DigitalOcean it would be mx._domainkey.mg with k=rsa ...
    I’m actually unsure if you should have the quotes " or not.

    You can run these command to list the current data:

    dig mg.example.co.uk CNAME
    dig mg.example.co.uk TXT
    dig mx._domainkey.mg.example.co.uk TXT
    

    If it’s for a client, then you should know, since you’re getting paid for it - I’m not :)

Thanks @hansen, that did the trick. To be honest it’s more of an unpaid ‘favour’ venture, but you’re point still stands - I should know!

  • @bookshelfbob DNS can be tricky, but it’s just so much easier to help, when we can see the domain and do lookup ourself. We all started some place, most questions on the web are usually for some project, which people are getting paid for, so it was just a low-punch :-)

Submit an Answer