Report this

What is the reason for this report?

Web and Email server with NGINX

Posted on August 27, 2021

Currently I am running webserver with NGINX, MYSQL, PHP (Current version) on Ubuntu 20.04. I am trying to setup email server as well on the same Ubuntu server. Can someone help me with the HOW to and where I can find a documents for this and also which email server is best. For ssl I am using certbot with let’s encrypt. I am very new to ubuntu OS. Thanks in Advance.



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,

You could use Postfix as your SMTP server. Here is a step by step tutorial on how to set it up on Ubuntu 20.04:

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

However, I would personally use an SMTP service like SendGrid rather than running my own email server on the same server where I run my web application. Running your own email server could be quite challenging and if you only need it to send a few emails per day, it would be more convenient to use an SMTP service like SendGrid.

Hope that this helps. Regards, Bobby

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.