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: https://mailcow.email/ Project source: https://github.com/mailcow/mailcow-dockerized Documentation: https://mailcow.github.io/mailcow-dockerized-docs/

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 https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –

sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”

sudo apt update

sudo apt-get install docker-ce docker-ce-cli containerd.io

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 "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(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 https://github.com/mailcow/mailcow-dockerized

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

     cd /mailcow-dockerizer

     sudo ./generate_config.sh

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 *