Hosting website on DO but using shared hosting mail servers

I recently migrated my site from a shared hosting account on over to DO.

The file migration went smoothly (mostly), however, I have a question about the mail. With Stablehost, I managed everything through cpanel and configured my incoming and outgoing mail servers with Gmail based on the configuration info obtained from cpanel.

However, now that I’ve change my dns information to point to digitalocean servers, I’ve stopped receiving emails. I’m assuming there is something wrong that I have to change with the MX entries (on DO or on StableHost?)

Is it possible for me to keep using my old shared stablehost account just for the mail services (avoiding setting up my own mail servers on DO)? How do I configure this to fix my email?

Thank you! Niket


@bhopkins thanks for your reply!

So I’m using as my domain registrar and DO does have DNS configuration on the droplets.

So my question is…do I point the DO DNS to my StabeHost shared mx records? Or the other way around. Definitely very much confused here :S

ALternatively, I might just set up a Zoho mail since there seems to be a tutorial here at DO.

I guess you had your DNS setup on the shared hosting account. I haven’t used DO yet, just thinking about it, but you are correct you will need to update your MX record. Since I have not spun up a droplet yet, I’m not sure if DO has DNS on there droplets or not, but even if they do, I would recommend you hosting your DNS on another site. If you have godaddy as your registrar you can host DNS there for free. Other registrars have similar offerings.

Personally I have moved all my DNS services to DNSMadeEasy and have never looked back. They allow you to set up at least 8 vanity DNS servers located around the world. This will help yuor time to first byte and just make your domain look more professional. Speed is the main reason everyone is looking to SSD’s any way, correct :-)

Submit an 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.

If you post your domain name, I can figure this out for you and give you exact steps. Let me a question.

Originally you had your NS records defined in your stable host account and pointing to their DNS servers, then when you started up this droplet, in the account, you updated your name servers to point to digital ocean, correct?

Email was working as expected prior to this change, correct?

If this is accurate then you need to create MX records on your digital ocean host. Not sure if there is a control panel of if you will need to edit /etc/named.conf

Add two MX records pointing to

Leave the name portion blank and make one of them a 0 priority and one a 10

My guess is right now that if you pull up a command prompt on windows and do a nslookup

then set type=mx Then your domain name and enter.

You will get a blank record as your MX records are defined on your old DNS and not present on your current DNS.

Post your domain name and the ip of one of your old DNS servers and I’ll give you exact steps for what you need to do.