CNAME Record domain forwarding breaks emails due to MX Records mis-match

CNAME Record caused my emails to fail.

I hosted 2 emails at RackSpace for my domain, and verified they worked fine. This required me to update the MX records where I host my domain.


Then, before I could create a website, I was allowed by my partner to point my domain at his website.

The redirect worked once I created a CNAME record. brings up the site at

But the emails stopped working.

The error is "553 Relaying disallowed"

I called RackSpace and they said it's because the MX records at the, where points at, are pointing to Zoho (a major email provider).

So, my question is...

If I move my two emails from RackSpace to Zoho, can I have a solution where

1) domain forwarding is working ( brings up the site at
2) emails work as well (both ( emails work again)



Or, is there another way to configure this?

newbiewebSr. Software EngineerAsked:
Who is Participating?
nociSoftware EngineerCommented:
If the IP address  of is stable  use the A address in stead of CNAME.
then all mail would follow the MX record and the  web access would follow the

Another way could be: to  your site  CNAME  ->
on your site handle the case for -> redirect ->

A third option:   run HAPROXY on you system  and reversproxy all requests to the system.
newbiewebSr. Software EngineerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.