Question

How can I turn my droplet with ubuntu 20.04 into an email server with my web domain

Posted March 28, 2021 206 views
WordPressLAMP StackEmailUbuntu 20.04DigitalOcean Droplets

Someone can tell me several ways how I can transform my droplet into an email server, explaining step by step.
Apart say if I have my droplet with LAMP and Wordpress with my website worked I can not become an email server or if, or should I create another droplet. In that I’m very confused about DNS those things.

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 @DavidLuceroSigcho,

I’ll recommend using Postfix with Dovecot. Postfix is a popular open-source Mail Transfer Agent (MTA) that can be used to route and deliver email on a Linux system. It is estimated that around 25% of public mail servers on the internet run Postfix.

Luckily, DigitalOcean do have such a tutorial in their knowledgebase.

Note that the goal of this tutorial is to help you get Postfix up and running quickly with only some bare-bones email functionality. You won’t have a full featured email server by the end of this guide, but you will have some of the foundational components of such a setup to help you get started.

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-20-04#prerequisites

It’s not needed to create a new droplet, you just need to configure Postfix on it and you are good to go. In regards to DNS, all you need to do is point your MX record to your droplet.

Regards,
KFSys

by Mark Drake
by Hanif Jetha
Postfix is a popular open-source Mail Transfer Agent (MTA) that can be used to route and deliver email on a Linux system. It is estimated that around 25% of public mail servers on the internet run Postfix. In this guide, you'll learn how to install and configure Postfix on an Ubuntu 20.04 server.

Hello there, @DavidLuceroSigcho

I will also recommend you to use Postfix. If you want to use it with Gmail you can also check this question in our community and the answer I’ve posted in it as well:

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

Hope that this helps!
Regards,
Alex