How to setup a mail server on Ubuntu 16, that will work for multiple domains on a single VPS?

Posted June 3, 2017 7.1k views
EmailUbuntu 16.04

First of all thanks to Digital Ocean community to help configuring lot of things! I have been trying to set up a mail server on my droplet which will work for multiple domains and multiple users with their mail client solutions, but mostly it didn’t satisfy my requirements. I found some how-to-s in Digital Ocean articles but most of theme are for old releases of Ubuntu. If there is any about Ubuntu 16, please refer me, if not, please give me some links or instructions to do the job. Also I would like to inform that I use for some domain names Letsencrypt. Thank you in advance!

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

This guide could be what you’re looking for - it uses Apache (like you do) and creates certificates for Postfix and Dovecot.
Dovecot is the IMAP/POP3 server - since Postfix is only the MTA (it only does SMTP).