Mailcow install on debian 12 VPS

Step 1: Update the System

sudo apt update
sudo apt upgrade

Step 2: Install Required Packages

sudo apt install apt-transport-https curl git

Step 3: Install Docker

curl -fsSL | sh
sudo usermod -aG docker $USER
newgrp docker

Step 4: Install Docker Compose

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

Step 5: Clone Mailcow Repository


git clone
cd mailcow-dockerized

Step 6: Generate Configuration

cp mailcow.conf.dist mailcow.conf
nano mailcow.conf

Edit mailcow.conf to configure your settings such as domain name, email, and passwords.

Step 7: Start Mailcow

sudo ./
sudo docker-compose pull
sudo docker-compose up -d

Step 8: Access Mailcow Once the setup is complete, you can access Mailcow via a web browser by navigating to http://your_server_ip. Log in using the credentials specified during the configuration.

That’s it! You’ve successfully installed Mailcow on your Debian 12 server.