Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
This question was answered by @sugarhill:
Ok let’s start from the beginning to make this work
change your A record from “www.example.com” to “example.com” (remove “www”)
change cname from “www.www.example.com.” to just “www” (you actually did this before, but now the second www will not be added since you changed A record. So simply just put in “www” as before)
then change cname “email.www.example.com” to just “email” (you also did this before, but again now the www doesn’t get added). This is what prevented mailgun from validating.
After these changes it should work :)
P.S: “www.example.com. 1800 IN MX 10 mxb.mailgun.org.” is duplicate in your mx record. The duplicate should be another mailgun server with a different value then “10” (e.g. 20). Don’t know since I only use mailgun for transactional email (mails send by system) and not to actually receive emails. For receiving emails free I recommend “zoho.com” (while you can still keep mailgun for your system)