The mailserver suite with the 'moo'
open sourceGPL-3.0-onlyself-hostablefree
mailcow: dockerized is an open source email and groupware suite that runs as a set of Docker containers: Postfix for SMTP, Dovecot for IMAP and POP3, Rspamd for spam filtering, optional ClamAV, SOGo for webmail, calendars, contacts and ActiveSync, plus MariaDB, Redis, Unbound, Nginx and an ACME container for certificates. Its web UI creates domains, mailboxes and aliases in a few clicks, generates DKIM keys, offers two-factor login with TOTP, YubiKey OTP and WebAuthn, and can sign mailbox users in through Keycloak, LDAP or a generic OpenID Connect provider; an HTTP API with read-only and read-write keys automates it. It's GPL-3.0, and its makers at Servercow (The Infrastructure Company GmbH) sell support contracts and hosted mailcow from a Frankfurt data centre.
Ways to install
Hosted for you
Problems it solves
- run a complete mail server with webmail, spam filtering and calendars using Docker Compose
- set up email for our small business domain on our own VPS instead of paying per mailbox
- manage mail domains, mailboxes and aliases for several domains from a web admin panel
- give users webmail plus shared calendars and contacts on our self-hosted mail server
- sync phones with our own mail server over ActiveSync
- let users create throwaway spam aliases on our self-hosted mail
- sign mailbox users in to our mail server through Keycloak or LDAP
- provision mailboxes on our mail server automatically from a script through an API
- require two-factor login with YubiKey or TOTP for webmail and the mail admin panel
- scan incoming email for viruses on our own server
- generate DKIM keys and DNS records for each domain without editing config files
Features
- Docker containers: Postfix, Dovecot, Rspamd, SOGo, ClamAV (optional), MariaDB, Redis, Memcached, Unbound, Nginx, PHP, Olefy, ACME and Watchdog
- web UI to create domains, mailboxes and aliases in a few clicks
- temporary spam aliases mailbox users can create themselves
- DKIM and ARC support and key generation
- two-factor login: YubiKey OTP, WebAuthn and TOTP
- mailbox login through Keycloak, LDAP or a generic OpenID Connect identity provider
- SOGo webmail with shared contacts and calendars
- HTTP API with read-only and read-write API keys
- Exchange ActiveSync (EAS) for phones
- app passwords for external mail clients
Limitations
- Doesn't run on a Synology or QNAP NAS, or in OpenVZ, Virtuozzo or LXC containers: it needs a full virtual machine or bare metal2
Ways to run it
mailcow: dockerized
You arrange
- a server or full VM (KVM, ESX, Hyper-V) with at least 6 GiB RAM plus 1 GiB swap and 20 GiB disk, x86_64 or ARM64
- Docker and Docker Compose on a tested Linux (Debian, Ubuntu, Alma or Rocky)
- open ports 25, 465, 587, 143, 993, 110, 995, 4190, 80 and 443
- backups of the mail volumes
- support beyond the best-effort community, or a Servercow contract
shared mailcow
EUR 8.90/month per domain incl. VAT (EUR 99.90/year prepaid)45
Only in this edition
- 20 mailboxes with 20 GB storage, expandable to 50 GB
- unlimited aliases and domain aliases
managed mailcow
from EUR 54.90/month incl. VAT (3-month term); EUR 52.16/month on a 12-month term45
Only in this edition
- a dedicated server with clean IPs in Frankfurt
- unlimited domains and mailboxes, 100 GB storage expandable
- ActiveSync for up to 35 devices
- maintenance and direct developer support
- branding options
Capabilities
| Has an API | plan not known |
|---|---|
| Has single sign-on | plan not known |
Alternatives
The same job
These do what mailcow does.
- Mailu Insular email distribution - mail server as Docker images
- docker-mailserver Production-ready fullstack but simple mail server running inside a container
- iRedMail Full-featured, open source mail server solution for mainstream Linux/BSD distributions
- Stalwart Secure, scalable mail & collaboration server with comprehensive protocol support
- Mail-in-a-Box Mail-in-a-Box lets you become your own mail service provider in a few easy steps
- Mox Modern, secure, all-in-one mail server
