
Mailcow Dockerized
Self-hosted email server with Docker Compose and a web admin UI.
Replaces Google Workspace, Microsoft 365

Who it's for
Teams paying per-user monthly fees for Google Workspace or Microsoft 365 and running 20 or more mailboxes have a clear case for Mailcow on a small VPS. SOGo covers the core groupware workflows: webmail, calendar sharing, and contact sync to mobile devices via CalDAV, CardDAV, and EAS.
Teams deeply integrated with Google Drive, Docs, Meet, or Microsoft Teams for collaboration beyond email. Mailcow covers email, calendar, and contacts; it does not replace document collaboration or video conferencing.
Mailcow's multi-domain support and admin interface let hosting providers create and manage domains and mailboxes without per-domain or per-mailbox licensing costs. The absence of per-seat fees makes it viable as a bundled or resold service at scale.
Providers needing a customer-facing self-service portal with billing integration. Mailcow's admin UI is an operator interface, not a self-service panel for end customers.
Healthcare, legal, and government organizations that cannot place mail data on US or EU commercial cloud services can run Mailcow on their own hardware in the jurisdiction their compliance policy requires. All mail storage, logs, and archives remain under the organization's physical control.
Organizations where compliance also requires certified email archiving, e-discovery tooling, or specific audit logging formats. Mailcow provides mail logs but not dedicated archiving or legal hold features out of the box.
The problem
Running company email through Google Workspace or Microsoft 365 means every message, calendar event, and contact lives on vendor servers, subject to their pricing changes, data policies, and service availability. Per-seat billing scales against you as the team grows, and switching providers means a data migration project that most organizations defer indefinitely. Privacy-sensitive industries face an additional constraint: compliance requirements around data residency or regulatory audits that demand access to raw mail logs, server configurations, and stored message archives. Neither Google nor Microsoft offers the level of access a self-hosted server provides, and third-party tools for exporting or auditing data from either service add cost and complexity.
How it works
The entire mail server runs as a Docker Compose stack: Postfix for SMTP, Dovecot for IMAP, Rspamd for spam filtering, SOGo for webmail and groupware, ClamAV for antivirus, Nginx for the web interface, plus Redis, MySQL, Unbound, and Acme for TLS certificate management. No manual wiring of these services is needed; the stack starts from a single configuration and launch command.
Rspamd classifies inbound mail using statistical analysis, DNS-based blocklists, and fuzzy hashing. Users can train spam and ham filters through the SOGo webmail interface, and administrators can tune global rules from the admin panel. The November 2026 release ships Rspamd 4.2.1 with multiple issue fixes.
SOGo provides a full web client for mail, calendar, and contacts, with CalDAV and CardDAV support for syncing with desktop and mobile clients. Exchange ActiveSync (EAS) is supported for direct push to mobile devices. The November 2026 release ships SOGo 5.12.13 with performance improvements and bug fixes.
Mailcow includes an Acme client that automatically issues and renews TLS certificates for SMTP, IMAP, and the web interface through Let's Encrypt. DNS-01 challenge support, added in the March 2026 update, enables wildcard certificate issuance for setups where HTTP validation is not viable.
The admin panel handles domain creation, mailbox provisioning, alias routing, anti-spam policies, two-factor authentication enforcement, and quarantine management without editing configuration files. Forced 2FA for admin and user accounts was added in March 2026. Mailbox Groups, added in November 2026, let administrators create shared mailbox groups for teams.
Features
- Docker Compose stack with ten integrated services
- Rspamd spam filtering with per-mailbox learning
- SOGo groupware: webmail, calendar, and contacts
- Automated TLS certificate management
- Web admin interface for domains and mailboxes
How to install
Self-hosting deploys the full mail stack via Docker Compose; follow the setup guide at docs.mailcow.email for DNS and TLS configuration.
git clone https://github.com/mailcow/mailcow-dockerized
docker compose up -dRecommended for this setup
Strengths
- GPL-3.0 license with no per-seat or per-domain cost: Every feature, including the admin interface, groupware, and anti-spam configuration, is covered by the GPL-3.0 license with no paid tier, no mailbox limits, and no domain count restrictions. Organizations running dozens of domains and thousands of mailboxes pay only for the server, with no licensing fees tied to growth.
- Active security maintenance on a regular release cadence: The project patches component CVEs within days of disclosure: CVE-2026-33278 in Unbound was fixed in May 2026, and multiple ClamAV and Redis security issues were addressed across 2025 and 2026 updates. A predictable monthly or bi-monthly release cycle makes update planning easier than tracking upstream Postfix, Dovecot, and Rspamd releases separately.
- 13,779 GitHub stars and active community channels: The project has 13,779 stars and 1,867 forks on GitHub, and the community connects through Telegram groups, Mastodon, and a hosted forum at community.mailcow.email. Commercial support contracts and a one-time SAL payment option are available through Servercow for teams that need guaranteed response SLAs.
Trade-offs
- 437 open issues and ongoing self-hosting responsibility: The GitHub tracker shows 437 open issues, covering configuration questions, compatibility reports, and feature requests. Running a production mail server also requires DNS record setup (MX, SPF, DKIM, DMARC), reverse DNS configuration with the hosting provider, and monitoring for queue failures and deliverability issues. Teams without server administration experience should expect a meaningful learning curve.
- Multi-container stack requires real server resources: The Docker Compose deployment runs Postfix, Dovecot, Rspamd, SOGo, ClamAV, Nginx, Redis, MySQL, Unbound, and Acme as separate containers simultaneously. Very small VPS instances may not handle the full stack reliably. The official documentation at docs.mailcow.email covers current hardware requirements before provisioning a server.
- No cloud-managed tier from the project: Mailcow is entirely self-hosted with no managed cloud option. If the server goes down, mail delivery stops until it is restored. High availability requires setting up monitoring, alerting, and failover separately. Servercow offers commercial support contracts for operational questions but not managed hosting.
Tech stack
FAQ
Mailcow Dockerized is released under the GNU General Public License version 3 (GPL-3.0). Every component of Mailcow itself is covered by GPL-3.0. The project bundles other open source components including Postfix, Dovecot, Rspamd, SOGo, and ClamAV, each with its own license. The README recommends verifying those component licenses before deploying in environments with specific compliance requirements.
Full installation instructions are in the official documentation at docs.mailcow.email. The process involves cloning the GitHub repository, running the included configuration script to generate a local config file, and starting the stack with Docker Compose. DNS records (MX, SPF, DKIM, DMARC) must be configured at your domain registrar separately. TLS certificate issuance through Let's Encrypt is automated once DNS is configured.
Yes. The Infrastructure Company GmbH, the company behind Mailcow, offers support contracts through Servercow (servercow.de). The README describes this as the primary way to fund continued development. A one-time SAL (Support Access License) payment is also available for teams that want to contribute financially without a recurring contract. Neither offering includes managed hosting; support contracts cover configuration and operational questions.
Yes. SOGo, Mailcow's groupware component, supports CalDAV and CardDAV for calendar and contact sync with standard clients on iOS, Android, macOS, and Windows. Exchange ActiveSync (EAS) is also supported for direct push mail delivery to mobile devices. The January 2026 update introduced limited EAS and DAV access controls for tightened security.
Active. The project has been in development since December 2016 and ships regular updates. The November 2026 release added Mailbox Groups, an Imapsync rework, and SOGo 5.12.13. Security patches for component CVEs arrive within the monthly release cycle, as seen with CVE-2026-33278 in Unbound (May 2026). The last commit to the repository was November 10, 2026. The project has 13,779 GitHub stars and 1,867 forks.