This site uses cookies to deliver our services and to show you relevant ads and job listings.
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.
Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.

Join us in building a kind, collaborative learning community via our updated
Code of Conduct.

Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

I have got a free domain at Freenom, which I use to host my website, and to receive email.

About a month ago, I used an A record to point [Blank] and www to the A record of my webhosting.
I also had a MX record to my email provider, Zoho mail.

Now that I changed webhosting, I only have a CNAME to point my domain to.
Since I changed it, I don't receive mail anymore, altough I can still send mail.
When I remove my CNAME, my mail starts working again.
Is there any way to use both my email, and the CNAME record?

For the people who think this is a duplicate of this:
My problem is that the MX and the CNAME records interfere, not about CNAME not working, or whether I should or shouldn't use a CNAME for my site root

2 Answers
2

I assume you have a CNAME on the root of your domain, i.e. example.com without any 'www' in front. If this is true and you also have the CNAME set on the same address then the CNAME is stopping your mail getting delivered.

This can be avoided my setting the CNAME on "www" only and then using a url redirect to send visitors from http://yourdomain.com to http://www.yourdomain.com this way you can still use an MX record on yourdomain.com without losing mail.