Install a mail server on Linux in minutes – Mailcaw on docker

Are you looking for a quick and easy way to set up an email server on Linux? With this tutorial, you’ll learn how to install and configure all the necessary applications to have a fully functional email server in about 10 minutes!

We’ll be using Mailcow Dockerized, an open source project that offers a complete mail server powered by Docker.

Project page: Project source: Documentation:

Prerequisites A Linux server running Ubuntu 18.04 LTS or newer. You can still install Mailcow on a Linux server not running Ubuntu, however you may need to use different commands.

Install Docker and Docker-Compose You can still install Docker on a Linux server that is not running Ubuntu, however you may need to use different commands.

1.1 - Install Docker

sudo apt update

sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

curl -fsSL | sudo apt-key add –

sudo add-apt-repository “deb [arch=amd64] $(lsb_release -cs) stable”

sudo apt update

sudo apt-get install docker-ce docker-ce-cli

1.2 Verify that Docker was installed correctly

sudo docker run hello-world

1.3 Install Docker-Compose

Download the latest version (in this case it’s 1.25.5, but it might be different when you read this tutorial!)

sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

1.4. Verify that Docker-Compose was installed correctly

sudo docker-compose --version

1.5. (optional) Add your Linux user to the Docker group

sudo usermod -aG docker $USER

2. Instalar o mailcow-dockerized Clone o Mailcow na pasta /opt.

     cd /mnt

   sudo git clone

2.1. Generate your configuration file and follow the steps in the script.

     cd /mailcow-dockerizer

     sudo ./

2.2. Start Mailcow

sudo docker-compose up -d

User: admin

Password: moohoo

Leave a Comment

Your email address will not be published. Required fields are marked *