🎬

Video tutorial coming soon.

🐄 Setup Mailcow — Full Email Server Suite

Deploy Mailcow Dockerized, a complete email server solution with Postfix, Dovecot, SOGo webmail, spam filtering, DKIM signing, and a modern web admin panel.

⚠️ This script is provided for demo and testing purposes only.

📦 Resources & Setup Scripts

Grab the automated bash script from GitHub to follow along.

Automated install script — complete Mailcow email server stack.
View on GitHub

Quick Install:

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/email/mailcow/mailcow-ubuntu.sh
chmod +x mailcow-ubuntu.sh
sudo bash mailcow-ubuntu.sh

Tutorial Steps

1 Download & Run the Script

The script installs Docker, clones the Mailcow repo, generates the configuration file with your domain, and starts the full mail server stack (20+ containers).

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/email/mailcow/mailcow-ubuntu.sh
chmod +x mailcow-ubuntu.sh
sudo bash mailcow-ubuntu.sh

2 Access the Admin UI

Open your browser and navigate to the Mailcow admin panel. Default credentials are admin / moohoo:

https://YOUR-DOMAIN

3 Add Domain and Mailboxes

In the admin panel, add your domain, configure DNS records (MX, SPF, DKIM, DMARC) as shown in the UI, then create mailboxes for your users.

4 Connect Email Clients

Users can access email via the SOGo webmail at /SOGo, or configure any IMAP/SMTP client (Outlook, Thunderbird, Apple Mail) using the server settings in the Mailcow UI.

Ports Used

PortProtocolPurpose
25TCPSMTP (Receiving Mail)
80/443TCPWeb UI & SOGo Webmail
143TCPIMAP
587TCPSMTP Submission
465TCPSMTPS (SSL)
993TCPIMAPS (SSL)

Files Location

/root/docker/mailcow/docker-compose.yml