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

January 29, 2019 389 views
DNS Email Ubuntu 18.04

Hello,

I have a website, recconsulting-services.com, 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 (info@recconsulting-services.com) 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 .
https://www.digitalocean.com/community/tutorials/why-you-may-not-want-to-run-your-own-mail-server

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.

Enrico.

1 Answer

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.

Jarland

  • Hi Jarland. As usual, many thanks for the reply.
    Please take a look at the following screen. Is my record configuration for Digital Ocean. Do you think it's right?
    https://snag.gy/7tTBJF.jpg
    It was suggested by the hostgator support team, who told me which records to set up in order to send and receive e-mails with their server while hosting the website on Digital Ocean.
    I did not change anything so far on the Hostgator Cpanel, should I do it?
    Finally, do you know if I need to open some ports with Ubuntu in order to enable SMTP and in general to enable email sending within the server?
    Thanks in advance,
    Enrico.

Have another answer? Share your knowledge.