Report this

What is the reason for this report?

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

Posted on March 28, 2021

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.



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.