Video tutorial coming soon.
Deploy Mailcow Dockerized, a complete email server solution with Postfix, Dovecot, SOGo webmail, spam filtering, DKIM signing, and a modern web admin panel.
Grab the automated bash script from GitHub to follow along.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/email/mailcow/mailcow-ubuntu.sh
chmod +x mailcow-ubuntu.sh
sudo bash mailcow-ubuntu.sh
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
Open your browser and navigate to the Mailcow admin panel. Default credentials are admin / moohoo:
https://YOUR-DOMAIN
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.
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.
| Port | Protocol | Purpose |
|---|---|---|
| 25 | TCP | SMTP (Receiving Mail) |
| 80/443 | TCP | Web UI & SOGo Webmail |
| 143 | TCP | IMAP |
| 587 | TCP | SMTP Submission |
| 465 | TCP | SMTPS (SSL) |
| 993 | TCP | IMAPS (SSL) |
/root/docker/mailcow/docker-compose.yml