How to set DNS to use cpanel email

I have a strong shared hosting plan from a company that provides unlimited email accounts but sadly I had some issues deploying a Laravel app on that plan because of the restrictions it has. now I want to use a VPS for my Laravel app but still want to use the cpanel email functionality on that plan to send and receive emails on the same domain that will host the Laravel app on the VPS but I really have no idea if it is possible and if it is then how should it set the DNS records to achieve that. Also was not able to find any tutorial that tackles what I need to do.

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.

Hi @ShanS,

You can do that with DigitalOcean.

First, let’s talk on how to create your Laravel Droplet. There are two possibilities which you can use -

  • Create the droplet and install Laravel on our own

  • Use the MarketPlace image of Laravel which installs everything for you.

If you want to create the droplet and manually install Laravel, I’ll recommend checking the following tutorial. It will help you do it while installing all the necessary software it’s needed.

Now, if you want to skip all the stuff that need to be done and just have it prepared for you, I’ll recommend using the Marketplace here:

What it does is, it installs Laravel and all the software needed preparing it for you to just use it.

DNS As for the DNS, all you need to do is change the A record of your Droplet once your domain is ready to your Droplet’s IP address.

Hello, @ShanS

If you want to set up a Laravel application on a DigitalOcean droplet all you need to do with the DNS is to update the A record of your domain name and point it to the IP address of your droplet.

The MX record that is responsible for the mail delivery will remain the same as per your wish, meaning that you’ll still use your cPanel plan to host your emails.

Regards, Alex