I have been for several weeks trying to set up Mailgun in my VPS (hosted at Site5) by myself because support is not giving any clue about the problem.
I need to set up the DNS records provided by Mailgun for custom domain I created in there:
TXT mg.mywebsite.com v=spf1 include:mailgun.org ~all TXT mailo._domainkey.mg.mywebsite.com k=rsa; p=STRING CNAME email.mg.mywebsite.com mailgun.org MX 10 mxa.mailgun.org MX 10 mxb.mailgun.org
Then I created in my VPS the subdomains needed before adding the DNS records. My VPS is managed through CPanel.
Subdomain Website folder or redirect --------- -------------------------- mg.mywebsite.com http://mailgun.org email.mg.mywebsite.com public_html/mg
And then added the DNS records asked by Mailgun in order to work.
email.mg.mywebsite.com. 14400 CNAME mailgun.org mg.mywebsite.com. 14400 TXT v=spf1 include:mailgun.org ~all mailo._domainkey.mg.mywebsite.com. 14400 TXT k=rsa; p=STRING mxa.mailgun.org. 10 MX mxb.mailgun.org. 10 MX
Do I have to change any of my DNS records provided by default by my host in order to Mailgun recognize my configuration?
EDIT 1: Checking with nslookup set querytype=soa example.com I get:
Server: 220.127.116.11 Address: 18.104.22.168#53 Non-authoritative answer: example.com origin = dns.site5.com mail addr = root.localhost.localdomain serial = 2016090502 refresh = 3600 retry = 7200 expire = 1209600 minimum = 86400 Authoritative answers can be found from: example.com nameserver = dns2.site5.com. example.com nameserver = dns.site5.com.
At first sight, all that data is right.
The SOA record provided by
example.com. 86400 IN SOA dns.site5.com. root.localhost.localdomain. 2016090502 3600 7200 1209600 86400