I am a web dev, but I rarely config DNS/A record/MX records. I have a client who registered a new domain name with Google Apps trial, which means the domain name is registered with GoDaddy and the email will be handled by Google. He later decided he wants to host a simple website. So I:
Using the info (login name/password) seen in Google Apps control panel, logged into GoDaddy.com. Changed the domain's name server to my own hosting, where I have put up a simple index.php page. Tested that myClientsDomain.com actually directs to the index.php on my own web server. Suddenly, the email account (via Gmail UI) of my client is no longer be able to receive any emails.
I figured this must be the MX record being incorrect. I tried to login to GoDaddy again to see if I can edit the MX record value, but I couldn't. I logged into my own hosting panel and found out under "Addon domain" I can configure the MX Records there.
So, I created a few new MX Records according to a help article from Google, so that it points back to Google.
However, testing still failed.
Should I be setting up the MX Records in GoDaddy.com? Or in my hosting cPanel?
I "hooked up" the domain name and my web hosting by configuring it via my hosting's cPanel. I remember it asking for some auth code that can be seen from GoDaddy.com config page.
What have I done wrong here? Was it the automatic configuration that messed up the MX Record? How do I setup from the GoDaddy side to have the correct MX record value so that emails can be received normally?