Skip to content

Instantly share code, notes, and snippets.

Forked from opentaq/
Created July 13, 2022 17:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save arkestlerdev/d93ec5ec92ae1f64a5f057ff9485220b to your computer and use it in GitHub Desktop.
Mailserver Installation


sudo install fail2ban


sudo install ufw

UFW Settings

sudu ufw default deny incomoing

sudo ufw default allow outgoins

sudo ufw allow 22,25,80,110,143,443,465,587,993,995,4190/tcp

sudo ufw enable


Install curl and git

sudo apt install curl git -y

Install Docker


curl -sSL | CHANNEL=stable sh

systemctl enable --now docker

Install Docker Compose

curl -sSL$(curl -Ls$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose

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

Install the mail server


cd /opt

git clone

cd mailcow-dockerized


Start the mail server

docker-compose pull

docker-compose up -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment