Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mailgun Domain not found: abc.com

Tags:

I am trying to setup emails with my own website. Let's say the domain name is abc.com.

The nameserver in use is digital ocean and I also have a gmail account linked to the same (say using [email protected]).

While setting up things with mailgun, I used mg.abc.com (as they said it would also let me email using the root domain). The verification step is done and I can send email using [email protected].

However, trying to use the root domain ([email protected]) gives the following error:

AnymailRequestsAPIError: Sending a message to [email protected] from [email protected] ESP API response 404: { "message": "Domain not found: abc.com" } 

How do I resolve this issue?

like image 630
sudshekhar Avatar asked May 22 '16 14:05

sudshekhar


People also ask

Do you need a domain for Mailgun?

A verified domain is required to send any emails at Mailgun, and the verification process is critical to protecting our infrastructure and your domain's sending reputation.

Can I use Mailgun with Gmail?

Gmail + Mailgun IntegrationsZapier lets you send info between Gmail and Mailgun automatically—no code required. Triggers when you receive a new attachment (triggers once per attachment). automatically do this!


1 Answers

I got the same error when I copy-pasted the curl example from Mailgun help page.

My domain was set to EU region, and I had to set the api domain to api.eu.mailgun.net instead of api.mailgun.net.

Boom! Working! :)

like image 200
wiktor Avatar answered Sep 29 '22 13:09

wiktor