Mail-in-a-Box vs mailcow: Easy vs Flexible
Quick Verdict
mailcow is the better choice for most self-hosters. It runs in Docker (portable, isolatable), offers deep customization, and includes SOGo for calendar/contacts/ActiveSync. Mail-in-a-Box wins on simplicity — one command on a dedicated Ubuntu server and everything works — but it requires a dedicated machine and offers zero customization. If you’re comfortable with Docker, choose mailcow. If you want the absolute simplest path to self-hosted email, choose Mail-in-a-Box.
Overview
These represent opposite philosophies. Mail-in-a-Box is an opinionated “appliance” — it makes every decision for you and installs a complete email stack directly on Ubuntu. mailcow is a Docker Compose stack that gives you control over each component while still providing a polished admin interface.
| Attribute | Mail-in-a-Box | mailcow |
|---|---|---|
| Installation | Bash script on bare Ubuntu | Docker Compose |
| Components | Postfix, Dovecot, Roundcube, Nextcloud, SpamAssassin | Postfix, Dovecot, SOGo, Rspamd, ClamAV, Redis, MariaDB |
| First release | 2013 | 2017 |
| License | CC0 (Public Domain) | GPL-3.0 |
| Latest version | v74 (Jan 2026) | Continuous releases |
| OS requirement | Ubuntu 22.04 only | Any OS with Docker |
Feature Comparison
| Feature | Mail-in-a-Box | mailcow |
|---|---|---|
| SMTP | Postfix | Postfix |
| IMAP/POP3 | Dovecot | Dovecot |
| Webmail | Roundcube | SOGo |
| Calendar (CalDAV) | Nextcloud | SOGo |
| Contacts (CardDAV) | Nextcloud | SOGo |
| ActiveSync | z-push | SOGo |
| Spam filtering | SpamAssassin + Postgrey | Rspamd |
| Virus scanning | No | ClamAV |
| Admin panel | Built-in (basic) | Built-in (advanced) |
| DKIM/SPF/DMARC | Automatic | Automatic |
| DANE/TLSA | Yes | Yes |
| DNSSEC | Yes (built-in DNS server) | No (external DNS) |
| Let’s Encrypt SSL | Automatic | Automatic |
| DNS management | Built-in (nsd4) | External only |
| Two-factor auth | TOTP | TOTP, U2F |
| Multi-domain | Yes | Yes |
| Per-user quotas | Yes | Yes |
| Sieve filters | Yes | Yes |
| API | REST API | REST API |
| Backup | Built-in (Duplicity to S3/local) | Docker volume backup |
| Static website hosting | Yes | No |
| Multiple admin users | No | Yes |
Installation Complexity
Mail-in-a-Box
curl -s https://mailinabox.email/setup.sh | sudo bash
Answer three questions (email, hostname, country code). Wait 10 minutes. Done. DNS records are automatically configured if you point your nameservers to the box. This is genuinely the simplest email server installation available.
Constraint: Requires a dedicated Ubuntu 22.04 machine. Cannot coexist with Docker, existing web servers, or other services.
mailcow
git clone https://github.com/mailcow/mailcow-dockerized
cd mailcow-dockerized
./generate_config.sh
docker compose pull && docker compose up -d
Answer a few config questions. Wait for 10+ containers to start. Configure DNS records manually at your registrar. More steps, but runs alongside other Docker services on the same machine.
Resource Usage
| Metric | Mail-in-a-Box | mailcow |
|---|---|---|
| RAM (idle) | ~400 MB | ~1.5-2 GB |
| RAM (100 users) | ~600 MB | ~2-3 GB |
| Containers | 0 (bare metal) | 10-15 |
| Disk (system) | ~2 GB | ~4 GB (images) |
| Startup time | N/A (systemd services) | 2-5 minutes |
Mail-in-a-Box is significantly lighter because it doesn’t run ClamAV (virus scanning) or Redis, and SpamAssassin uses less RAM than Rspamd at idle. mailcow’s ClamAV alone consumes ~500 MB.
Customization
| Aspect | Mail-in-a-Box | mailcow |
|---|---|---|
| Swap webmail client | No | Yes |
| Custom Postfix settings | No (overwritten on update) | Yes (via override files) |
| Custom Dovecot settings | No | Yes (via override files) |
| Additional services | No (dedicated machine) | Yes (Docker on same host) |
| Custom SSL certificates | No (Let’s Encrypt only) | Yes |
| Custom spam rules | Limited | Rspamd fully configurable |
| Plugin installation | No | SOGo plugins |
Mail-in-a-Box’s philosophy is explicitly anti-customization: “It ‘just works.’ There are no user-configurable setup options.” Any manual edits to config files are overwritten on the next update.
Groupware
Both include groupware, but through different paths:
Mail-in-a-Box bundles Nextcloud for contacts and calendar sync. The Nextcloud instance is minimal — primarily for CardDAV/CalDAV. You get file storage as a bonus, but it’s not the focus.
mailcow uses SOGo, a dedicated groupware server. SOGo provides shared mailboxes, shared calendars, resource booking (meeting rooms, equipment), and a more polished web interface for calendar/contacts. SOGo’s ActiveSync implementation is also more mature than Mail-in-a-Box’s z-push.
Use Cases
Choose Mail-in-a-Box If…
- You want the absolute simplest self-hosted email setup
- You’re running email on a dedicated VPS ($5-12/month)
- You don’t need to run anything else on the same server
- You want built-in DNS management (no manual DNS record creation)
- You want a working backup solution out of the box
- You’re a single user or small family
Choose mailcow If…
- You already use Docker for other services
- You need advanced admin features (multiple admins, domain-level settings)
- You want virus scanning (ClamAV)
- You need SOGo groupware (shared calendars, resource booking)
- You want to customize Postfix, Dovecot, or spam filtering rules
- You’re hosting email for multiple domains with different policies
- You want to run email alongside your other self-hosted services
Final Verdict
mailcow is the more capable and flexible option. Docker deployment means it runs on any OS, alongside other services, with easy backup and migration. SOGo is a better groupware solution than the minimal Nextcloud bundled with Mail-in-a-Box. The admin panel gives you real control over mail routing, spam filtering, and per-domain policies.
Mail-in-a-Box earns its place as the easiest possible path to self-hosted email. If you’ve never run a mail server, it eliminates every friction point — including DNS configuration, which is the hardest part of email self-hosting. For a personal email server on a $6/month VPS, it’s hard to beat.
FAQ
Can Mail-in-a-Box run in Docker?
No. Mail-in-a-Box installs directly on bare Ubuntu 22.04 and expects full control of the system. It is fundamentally incompatible with Docker. If you want a Docker-based email server, use mailcow, Mailu, or docker-mailserver.
Can I customize the spam filter in Mail-in-a-Box?
Barely. Mail-in-a-Box uses SpamAssassin with default settings. You can adjust SpamAssassin’s threshold via its config files, but any changes are overwritten on the next Mail-in-a-Box update. mailcow uses Rspamd, which is fully configurable through override files that survive updates.
Does mailcow include file storage like Mail-in-a-Box’s Nextcloud?
No. Mailcow includes SOGo for calendar, contacts, and shared mailboxes — but not file storage. If you need self-hosted file storage alongside email, run Nextcloud as a separate Docker container alongside mailcow. Mail-in-a-Box bundles a minimal Nextcloud instance primarily for CardDAV/CalDAV, not as a full file storage solution.
Which is better for someone who has never run a mail server?
Mail-in-a-Box. Its single-command installation and automatic DNS management eliminate the two hardest parts of email self-hosting: configuring the software stack and getting DNS records right. mailcow is straightforward for Docker users, but you still need to manually create MX, SPF, DKIM, and DMARC records at your DNS provider.
Can I run other services on the same server as mailcow?
Yes — that is one of mailcow’s key advantages. Since it runs in Docker containers, you can run Nextcloud, Jellyfin, or any other service on the same server. Mail-in-a-Box requires a dedicated server and will conflict with other web services that use ports 80 and 443.
Is Mail-in-a-Box’s Nextcloud secure?
The Nextcloud instance is maintained and updated by Mail-in-a-Box’s update scripts. It is a minimal installation primarily for contacts and calendar sync. It is not recommended for heavy file storage use — the Mail-in-a-Box team does not optimize for Nextcloud performance, and adding Nextcloud apps or plugins is not supported.
Related
Get self-hosting tips in your inbox
Get the Docker Compose configs, hardware picks, and setup shortcuts we don't put in articles. Weekly. No spam.
Comments