Setting up Email server to my domain

Posted August 3, 2021 499 views
Ubuntu 20.04

My web developer trying to setup an email server to create email accounts from the domain associated with my droplet account.
He is using the command:
curl -s | sudo bash
This script must be run on a system running Ubuntu 18.04 or Ubuntu 14.04 but we need something that runs on 20.

Please guide us with this query.
Thank you.

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


As far as I can see script does not support Ubuntu 20.04 yet.

As this is an open-source project, you could submit a feature request via the official GitHub repository and ask for Ubuntu 20.04 support:

Alternatively, you could submit a pull request introducing the change.

Another option is to use a control panel like VestaCP which comes with a mail server pre-configured:

Also as a side note, I could suggest taking a look at this post here:


by Mitchell Anicas
When setting up a web site or application under your own domain, it is likely that you will also want a mail server to handle the domain's incoming and outgoing email. While it is possible to run your own mail server, it is often not the best option for a variety of reasons. This guide will cover many of the reasons that you may not want to run your own mail server, and offer a few alternatives.

Hello, @kalpeshcipatel

If you’re interested in using Postfix alongside Gmail to send emails from your droplet you can also check this mini tutorial:

Hope that this helps!