Mailgun domain not found: example.com
<p>I am trying to setup emails with my own website. Let's say the domain name is <code>example.com</code>.</p>
<p>The name server in use is digital ocean and I also have a gmail account linked to the same (say using <code>contact@example.com</code>).</p>
<p>While setting up things with mailgun, I used <code>mg.example.com</code> (as they said it would also let me email using the root domain). The verification step is done and I can send email using <code>contact@mg.example.com</code>.</p>
<p>However, trying to use the root domain (<code>contact@example.com</code>) gives the following error:</p>
<pre><code>AnymailRequestsAPIError: Sending a message to me@gmail.com from contact@example.com
ESP API response 404:
{
&quot;message&quot;: &quot;Domain not found: example.com&quot;
}
</code></pre>
<p>How do I resolve this issue?</p>