Problem with verifying mailgun MX DNS

May 6, 2016 1.7k views
Email Networking DigitalOcean DNS

Hello Community,

I've decided to use Mailgun as my mail service provider, but I'm meeting one problem. The problem is setting mx dns records to use their routes system, so i can forward my inbound mails to my email.

My DNS look like this for now:
$ORIGIN coursekat.com.
$TTL 1800
coursekat.com. IN SOA ns1.digitalocean.com. hostmaster.coursekat.com. 1462529965 10800 3600 604800 1800
coursekat.com. 1800 IN NS ns1.digitalocean.com.
coursekat.com. 1800 IN NS ns2.digitalocean.com.
coursekat.com. 1800 IN NS ns3.digitalocean.com.
coursekat.com. 1800 IN A 188.166.32.146
www.coursekat.com. 1800 IN CNAME coursekat.com.
www.dev.coursekat.com. 1800 IN A 188.166.32.146
dev.coursekat.com. 1800 IN A 188.166.32.146
register.coursekat.com. 1800 IN A 188.166.32.146
www.register.coursekat.com. 1800 IN A 188.166.32.146
email.mg.coursekat.com. 1800 IN CNAME mailgun.org.
mg.coursekat.com. 1800 IN TXT "v=spf1 include:mailgun.org ~all"
k1._domainkey.mg.coursekat.com. 1800 IN TXT "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC6M7JKhr7xUaj4bUxKFCYNCAcNU3q2GSoveoORB2J4UzQrxWuMTMTY6egRWLwNsCxHGtiMXv0JFa4t5T2cYVeGF2q0AMBOCx+UJ4kMOF8tsuzTEcPatLN8YsYYSCxpX/iPr89Gvwjq57JpMkfJAIs1hbC7/2IQh1pdDEQzyszvvwIDAQAB"
coursekat.com. 1800 IN MX 10 mxa.mailgun.org.
coursekat.com. 1800 IN MX 10 mxb.mailgun.org.

But mailgun still can't see MX values even after 48h.

Somebody can help?

I'd be grateful.

3 comments
  • I would recommend reaching out to mailgun. The MX records for this domain do appear to be returned properly:

    ~$ dig coursekat.com mx
    
    ; <<>> DiG 9.9.5-11ubuntu1.2-Ubuntu <<>> coursekat.com mx
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53164
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;coursekat.com.         IN  MX
    
    ;; ANSWER SECTION:
    coursekat.com.      1800    IN  MX  10 mxb.mailgun.org.
    coursekat.com.      1800    IN  MX  10 mxa.mailgun.org.
    
    ;; Query time: 5 msec
    ;; SERVER: 127.0.1.1#53(127.0.1.1)
    ;; WHEN: Fri May 06 09:39:18 EDT 2016
    ;; MSG SIZE  rcvd: 93
    
    
  • Mailgun answered me like this:

    Thank you for contacting Mailgun support. The issue here is that the MX records were added for coursekat.com, however the domain you are using with Mailgun is mg.coursekat.com. If you change the hostname to mg.coursekat.com, they should be picked up.

    However DO doesn't give us possibility to change MX record hostname. How to resolve such a problem?

  • In this scenario, you would create a second domain zone just for 'mg.coursekat.com' and use it for the purpose of setting MX records to this subdomain.

1 Answer

This question was answered by @jschwenn:

In this scenario, you would create a second domain zone just for 'mg.coursekat.com' and use it for the purpose of setting MX records to this subdomain.

View the original comment

Have another answer? Share your knowledge.