Question

Simplest way to have email on VPS

Posted December 5, 2020 352 views
Email

Hi there
I do suck at this, but I managed to create a droplet with Ubuntu 20.04LTS, LAMPS stack and is running a PHP Script I bought for a project I’m starting soon, so far so good. Reading here I understood that installing a mail server is a complex task and it makes a dent on the droplet resources, and obviously I have no idea how to manage that either.
I need to send a confirmation email every time an new user is registered, and I’ve achieved that using Sendgrid and it works, but I have no (free) way to receive pop or imap email. I want to create, (I actually did it on zoho.com) 3 accounts info - register - support @mydomain.com but I can only use one account at the time, is web based, so no pop or imap and no way to use the 3 accounts under a single login or dashboard.
I foudn somewhere that if I have another website on shared hosting, I can somehow use that infrastructure to manage email from the domain hosted on the VPS, based on MX or TXT records,but not sure if I got that right or no.

Excuse my english if it’s not clear enough, maybe I’m asking for something that doesn’t exist as free, but it doesn’t hurt to ask.

Thank you!

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.

×
Submit an Answer
2 answers

Hi @puntadigital,

You have two options basically. The first option is to use your droplet for sending out e-mails. It’s not that hard as you think but it required a lot of configuration in order to pass all checks of big E-mail providers like Yahoo, Google and so on. Anyway, you can follow this tutorial to configure an E-mail service on your droplet

https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin

Now, the second option would be to use an external E-mail provider. I would suggest this option rather than the first one. It’s easier, you configure the e-mail accounts on a third mail provider and use their MX records. The only thing you do is configure the SMTP stuff on your website by using the instructions given from this provider and that’s it. You don’t have to worry about E-mail score or how to keep E-mails.

Regards,
KFSys

by Nestor de Haro
In this tutorial we are going to configure a mail server using Postfix, Dovecot, MySQL, and SpamAssassin on Ubuntu 12.04.

Hello, puntadigital

You can also double check this mini tutorial I’ve posted in this previosly asked question:

https://www.digitalocean.com/community/questions/using-gmail-with-postfix-smtp-server?answer=60074

Let me know if you have any questions.

Hope that this helps!
Regards,
Alex