Skip to main content

Mail Suite Installation

Clone the master branch of the repository, make sure your umask equals 0022. Please clone the repository as root user and also control the stack as root. We will modify attributes - if necessary - while bootstrapping the containers automatically and make sure everything is secured. The update.sh script must therefore also be run as root. It might be necessary to change ownership and other attributes of files you will otherwise not have access to. We drop permissions for every exposed application and will not run an exposed service as root! Controlling the Docker daemon as non-root user does not give you additional security. The unprivileged user will spawn the containers as root likewise. The behaviour of the stack is identical.

# Switch to root user:
sudo su -
# This must return '0022'
umask
cd /opt
git clone https://github.com/mailcow/mailcow-dockerized
cd mailcow-dockerized
./generate_config.sh
nano mailcow.conf
docker compose pull
docker compose up -d

Now head over to the browser and visit the url of your server at yourmail.yourdomain.tld and you should get:

Please note that the default credentials for the server are:

  • username: admin
  • password: moohoo

The configuration of the server is out of the scope of this manual, but feel free to explore the website of the developers at https://docs.mailcow.email/