Question

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

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.


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 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

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