Back to services

Mailcow

Mail server suite based on Dovecot, Postfix and other open source software, that provides a modern Web UI for administration.

View alternatives to Mailcow
Suggest edit
Open source
Self-hostable
GPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Overview

mailcow (short for mailcow: dockerized) is an open-source mail server suite, with the official tagline "The mailserver suite with the 'moo'". It packages each component needed to run a mail service into its own Docker container and orchestrates them all with Docker Compose. A web admin interface is included for managing domains, mailboxes, aliases and more. The project is maintained by the German company The Infrastructure Company GmbH (the Servercow brand), and the code is hosted on GitHub (mailcow/mailcow-dockerized).

Main Components

  • Postfix: the MTA, which sends and receives mail (SMTP)
  • Dovecot: IMAP/POP3 service and mail storage
  • Rspamd: anti-spam and mail filtering
  • ClamAV: virus scanning
  • SOGo: webmail, plus calendar, contacts (CalDAV/CardDAV) and ActiveSync (EAS)
  • Supporting services such as Nginx, PHP, Redis and Unbound

Key Features

  • Manage multiple domains, mailboxes, aliases and quotas in the web admin interface
  • Built-in anti-spam and antivirus filtering, plus mail quarantine
  • Webmail, calendar and address book, with mobile device sync via ActiveSync
  • Security: two-factor authentication (newer versions can enforce 2FA), app-specific passwords, MTA-STS support, and the ability to restrict EAS/DAV access and sending from aliases
  • Automatic Let's Encrypt certificate issuance, with DNS-01 validation also supported in newer versions
  • Advanced features such as domain-wide mail footers, relay host configuration and Prometheus monitoring export
  • Helper scripts such as cold-standby backups, and update.sh for updates

Target Users and Use Cases

Suited to individuals, tech enthusiasts, small and medium-sized businesses, schools and organizations that want control over their own email data, as well as providers hosting mail for multiple customers. It can be used as a replacement for hosted mail services such as Google Workspace and Microsoft 365.

Deployment

mailcow is deployed with Docker. The general process is as follows:

  1. Prepare a server with a public IP address (the official website lists recommended "Verified VPS Providers"), and set up your DNS records (MX, A, SPF, DKIM, DMARC, etc.).
  2. Install Docker and Docker Compose.
  3. Clone the GitHub repository and run the configuration generation script.
  4. Pull the images, then start with docker compose up -d.
  5. Open the web interface and finish configuring domains and mailboxes.

For detailed steps and system requirements, please refer to the official documentation (mailcow.github.io/mailcow-dockerized-docs).

Technical Requirements and Notes

  • Requires a Linux server with Docker and Docker Compose. The suite includes quite a few components and has some memory requirements; see the official documentation for specific specs.
  • Running your own mail server requires an open port 25, a clean IP reputation and correct reverse DNS (PTR).
  • The project is updated frequently. The official blog publishes release updates and security fixes monthly, so upgrading promptly is recommended.

Community and Support

  • Support channels: community channels such as GitHub, the community forum, a Telegram group and Mastodon; commercial support can also be purchased from Servercow.
  • Sponsorship: buy the one-time "Stay Awesome License", or sponsor via GitHub Sponsors.
  • Try it online: the official project provides online demos of the stable and Nightly versions.