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.
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
sudo docker run hello-world
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
sudo docker-compose --version
sudo usermod -aG docker $USER
cd /mnt
sudo git clone https://github.com/mailcow/mailcow-dockerized
cd /mailcow-dockerizer
sudo ./generate_config.sh
sudo docker-compose up -d
User: admin
Password: moohoo
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |