Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
Self-host Mailcow
updated Jul 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Jul 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
A full-featured, Docker-based mail server suite — Postfix, Dovecot, SOGo webmail, ActiveSync, antispam, and a polished admin UI — the popular self-hosted alternative to Google Workspace and Microsoft 365 for small teams. It is a heavier, multi-container stack: 6 GB of RAM is the minimum, 8 GB recommended. As with any self-hosted mail, expect to manage deliverability (SPF, DKIM, DMARC, and reverse DNS) so your mail reaches inboxes.
Pick Mailcow when you want the full groupware suite — Postfix, Dovecot, Rspamd, SOGo webmail and CalDAV/CardDAV, MariaDB, Redis and optional ClamAV — behind one web UI that handles domains, mailboxes, DKIM, quarantine and imapsync migrations, and you have the hardware for it: the prerequisites page asks for 6 GiB of RAM plus 1 GiB of swap in the default configuration, with 8 GiB recommended for 5–10 users, and 20 GiB of disk before a single email. On a 2 GB VPS it is the wrong pick; Stalwart or docker-mailserver are.
Mailcow is GPL-3.0 and well documented, but it is the most demanding install in this hub and its docs are blunt about where it will not run:
non-negotiable6 GiB RAM + 1 GiB swap is the documented minimum for the default config (8 GiB recommended for 5–10 users), 20 GiB disk without mail. The docs let you trim it — SKIP_CLAMD=y and SKIP_FTS=y in mailcow.conf disable the two components they call greedy with RAM — but the 6 GiB figure is upstream's, not our estimate.
non-negotiableThe host must not already use ports 25, 80, 110, 143, 443, 465, 587, 993, 995 or 4190 — so no other reverse proxy on 80/443 without extra configuration — and the docs warn of "several problems" on a firewalld/ufw-enabled system.
non-negotiableDo not try it on a NAS (Synology/QNAP), OpenVZ, LXC or other container platforms; KVM, ESX and Hyper-V are supported. Supported hosts are Debian 11–13, Ubuntu 22.04+, Alma Linux 8/9 and Rocky Linux 9.
non-negotiableDeliverability starts at your provider: the PTR record of your IP must match the mailcow FQDN (IPv4 and IPv6), and you need A, MX, SPF, DKIM, DMARC plus autodiscover/autoconfig records before clients behave.
Mailcow used 2220 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.7.2 (first boot, measured Aug 2026). We list a minimum of 6144 MB.
Is the Mailcow install snippet verified?
The Mailcow install snippet is marked verified on Ubuntu 26.04 (Jul 2026).