Website hosted on Digital Ocean but mail using Hostgator. How to configure Email?


I have a website,, which uses a Hostgator domain but it’s hosted here on Digital Ocean (i successfully redirected the DNS and finished propagation). I want to keep using the Hostgator email server to process emails but I am finding difficulties in doing so. How should I configure the email server? Everything I did was creating the email on Hostgator Cpanel ( and (based on Hostgator support indications) then create a MX record that points to my Hostgator IP on Digital Ocean dashboard. Should I something else on top of it? e-mails are generally working (sending and receiving) but, for example:

  • The form on my website does not notify my e-mail when somebody sends a request
  • I am not able to configure Windows Mail and I do not know what servers (incoming and outcoming) to choose in order to connect to the account.

Also, would you recommend to completely cut off any link with Hostgator and set up my own email on Digital Ocean? I read right here on the website that is not recommended .

Apologies in advance if this may seem confusing but it’s the first time I deal with this kind of issue. I am available for questions and clarifications.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello friend, I have the same problem. Did you get this resolved?

Hey friend,

The shortest path to resolution is to leave your DNS with HostGator and merely change your domain’s A record, in their cPanel, to point to your droplet IP. Otherwise you need to get the correct DNS information from them and set it in our panel, same for your email client. Both ways work, one way just has a single step.

I do not recommend running a mail server. I run a lot of them, I wish it on no one.