Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container. Only configuration files, no SQL database. ).
Mailcow
GPL-3.0 Docker Ready ★ 13,887 Stars Active · 2026-11-26Mail server suite based on Dovecot, Postfix and other software, that provides a modern Web UI for administration. .
- Tech Stack / Runtime
- Docker/PHP
- Open-Source License
- GPL-3.0
- GitHub Health
- ★ 13,887 · 1,881 forks
Commercial SaaS Replaced
Quick Docker Compose Reference for Mailcow
# Version of the database schema
x-db-version: &db_version DB_VERSION=02112026_1600
services:
unbound-mailcow:
image: ghcr.io/mailcow/unbound:1.26.2-1
environment:
- TZ=${TZ}
- SKIP_UNBOUND_HEALTHCHECK=${SKIP_UNBOUND_HEALTHCHECK:-n}
volumes:
- ./data/hooks/unbound:/hooks:Z
- ./data/conf/unbound/unbound.conf:/etc/unbound/unbound.conf:ro,Z
restart: always
tty: true
networks:
mailcow-network:
ipv4_address: ${IPV4_NETWORK:-172.22.1}.254
aliases:
- unbound
mysql-mailcow:
image: mariadb:10.11
depends_on:
- unbound-mailcow
- netfilter-mailcow
stop_grace_period: 45s
volumes:
- mysql-vol-1:/var/lib/mysql/
- mysql-socket-vol-1:/var/run/mysqld/:z
- ./data/conf/mysql/:/etc/mysql/conf.d/:ro,Z
environment:
- TZ=${TZ}
- MYSQL_ROOT_PASSWORD=${DBROOT}
- MYSQL_DATABASE=${DBNAME}
- MYSQL_USER=${DBUSER}
- MYSQL_PASSWORD=${DBPASS}
- MYSQL_INITDB_SKIP_TZINFO=1
restart: always
ports:
- "${SQL_PORT:-127.0.0.1:13306}:3306"
networks:
mailcow-network:
aliases:
- mysql
redis-mailcow:
image: redis:7.4.12-alpine
entrypoint: ["/bin/sh","/redis-conf.sh"]
volumes:
- redis-vol-1:/data/
- ./data/conf/redis/redis-conf.sh:/redis-conf.sh:z
restart: always
depends_on:
- netfilter-mailcow
ports:
- "${REDIS_PORT:-127.0.0.1:7654}:6379"
environment:
- TZ=${TZ}
- REDISPASS=${REDISPASS}
- REDISMASTERPASS=${REDISMASTERPASS:-}
sysctls:
- net.core.somaxconn=4096
networks:
mailcow-network:
ipv4_address: ${IPV4_NETWORK:-172.22.1}.249
aliases:
- redis
clamd-mailcow:
image: ghcr.io/mailcow/clamd:1.4.7-1
restart: always
depends_on:
unbound-mailcow:
condition: service_healthy
dns:
- ${IPV4_NETWORK:-172.22.1}.254
environment:
- TZ=${TZ}
- SKIP_CLAMD=${SKIP_CLAMD:-n}
volumes:
- ./data/conf/clamav/:/etc/clamav/:Z
- clamd-db-vol-1:/var/lib/clamav
networks:
mailcow-network:
# ... (see full file in official GitHub repository) Mailcow System Requirements & Self-Hosting Guide
Deploy Mailcow (4 GB+ RAM) →Recommended VPS
4 GB+ RAM
2 – 4 vCPU · $6 – $12/mo VPS
Deployment Method
Intermediate
Docker / Docker Compose (Recommended)
Commercial Use (GPL-3.0)
Yes — free to self-host commercially for your team without per-seat fees.
Maintenance Status
Active
Last commit: 2026-11-26
Frequently Asked Questions about Mailcow
Is Mailcow free to self-host for commercial use?
Mailcow is released under the GPL-3.0 license. Yes — free to self-host commercially for your team without per-seat fees. It has 13,887 GitHub stars and was last updated on 2026-11-26.
What VPS specifications do I need to self-host Mailcow?
Based on its Docker/PHP runtime and Communication - Email - Complete Solutions workload, we recommend at least 4 GB+ RAM and 2 – 4 vCPU (typically $6 – $12/mo VPS).
Does Mailcow support Docker deployment?
Yes — Mailcow supports Docker / Docker Compose (Recommended), making it intermediate to spin up on any Linux VPS.
Deploy Mailcow on your own VPS
Run Mailcow privately with full data control. Recommended starting footprint: 4 GB+ RAM ($6 – $12/mo VPS).
Best Value · 1-Click Docker
1 vCPU · 4 GB RAM · 50 GB NVMe
Includes built-in Docker & Coolify templates — ideal for beginners.
Lowest Cost / Performance
2 vCPU · 4 GB RAM · 40 GB NVMe
Unbeatable EU/US cloud pricing for high-traffic self-hosted stacks.
$200 Free Credit
1 vCPU · 1 GB RAM · 25 GB SSD
Clean developer UX with 1-click Marketplace Docker droplets.
More Open-Source Communication - Email - Complete Solutions
View all →Complete and fully featured mail server for use by websites & web servers. .
All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features. .
Turns any Ubuntu server into a fully functional mail server with one command. .
Simple yet full-featured mail server as a set of Docker images. .
Email alias solution to protect your email address. Comes with browser extensions and mobile apps. .