Mailgun Error: Domain example.com Not Recognized

Using Mailgun, my subdomain email (mg.example.com) sends successfully, but using my root domain (example.com) fails with a 404 error. See code snippet:

MailerAPIException: Failed to send email from [email protected] to [email protected]
API response 404:
{
    "error": "Domain not recognized: example.com"
}

hey, i had a similar strugle. verify your root domain on mailgun and update your dns recors. the error pops up if your domain isn’t autherized. hope this helps

I faced a similar issue when working with Mailgun for sending emails across different domains. In my case, the problem was related to an incorrect configuration in Mailgun’s settings for my root domain. I had only correctly verified the subdomain, which allowed emails to be sent, but overlooked the verification of the root domain. I made sure that all necessary DNS entries, including TXT and MX records, were properly configured and had enough time to propagate. This resolved the error and allowed emails to be sent through the root domain as well.

I recently encountered a similar issue where using a root domain with Mailgun resulted in a 404 error. In my case, the problem was that the root domain had not been properly added or verified in the Mailgun settings. I had configured the subdomain correctly, but overlooked the additional steps required for the root domain. It is important to double-check that all verification processes are complete and that the appropriate DNS records, such as TXT and MX entries, are correctly set up and propagated.

hey, i ran into a simlar problem. i fixed it by readding the root domain in mailgun and checking my settings. sometimes its just a config misstep, so double-check device authentication + dns setup