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?
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! :)