Question

Web and Email server with NGINX

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.


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,

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