# Mail-in-a-Box

> Mail-in-a-Box lets you become your own mail service provider in a few easy steps

Source: https://talira.ai/catalog/mail-in-a-box-64rb5pey
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Web app, Infrastructure
- Categories: [communication / email / mail servers](https://talira.ai/categories/communication/email/mail-servers)
- Platforms: linux, web[^1][^2]
- Licence: CC0-1.0[^2][^3]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^2]
- API: yes[^1]
- Creator: Joshua Tauberer, who began the project in 2013 and is its primary maintainer

Mail-in-a-Box turns a fresh [Ubuntu](https://talira.ai/catalog/ubuntu-3yhk0xfs.md) 22.04 LTS server into a complete mail server in one setup script, so one person can become their own email provider. It installs and configures Postfix, Dovecot, Roundcube webmail, [Nextcloud](https://talira.ai/catalog/nextcloud-z8b1mevn.md) for contacts and calendar sync, Z-Push for ActiveSync, SpamAssassin and Postgrey, and its own DNS server (nsd) that sets SPF, DKIM, DMARC, DNSSEC, DANE and MTA-STS records automatically, with [Let's Encrypt](https://talira.ai/catalog/let-s-encrypt-dqtcmges.md) certificates, backups, a firewall, fail2ban and daily health checks. A control panel and an API manage users, aliases, DNS records and backups. It deliberately has almost no configuration options, and it's dedicated to the public domain (CC0).

## Links

- Website: https://mailinabox.email/
- GitHub: https://github.com/mail-in-a-box/mailinabox
- Docs: https://mailinabox.email/guide.html

## Problems it solves

- become my own email provider on a cheap cloud server without learning Postfix and Dovecot
- set up a personal mail server for my own domain in an afternoon
- get SPF, DKIM, DMARC and DNSSEC right on my self-hosted mail without editing DNS by hand
- host email for a small club or family on one server with webmail and phone sync
- my self-hosted mail server should check itself daily and warn me when a certificate or DNS record is wrong
- back up my mail server to Amazon S3 automatically
- an opinionated mail server setup that makes the security decisions for me
- move my email off Gmail to a server I run, with calendar and contacts sync
- add mail users and aliases from a web control panel or an API

## Features

- Postfix SMTP and Dovecot IMAP servers
- Roundcube webmail
- Nextcloud contacts and calendar sync (CardDAV/CalDAV) and Z-Push ActiveSync
- SpamAssassin spam filtering and Postgrey greylisting
- nsd4 DNS with SPF, DKIM, DMARC, DNSSEC, DANE TLSA, MTA-STS and SSHFP records set automatically
- automatic Let's Encrypt TLS certificates
- backups with duplicity to Amazon S3 and other services; ufw firewall, fail2ban and munin monitoring
- daily health checks of services, ports, TLS certificates and DNS records
- control panel for mail users, aliases, custom DNS records and backups, with an API for every action
- static website hosting for your domains

## Limitations

- Doesn't support SMTPUTF8 (internationalized email addresses): internationalized domain names work[^1]
- Doesn't install in containers or on modified images: it needs a fresh Ubuntu 22.04 LTS 64-bit machine[^2]
- Doesn't offer configuration options for power users: there are basically no setup options, and config files can't be edited after install[^2]

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Joshua Tauberer, who began the project in 2013 and is its primary maintainer

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Maddy Mail Server](https://talira.ai/catalog/maddy-mail-server-gf114sns.md): Composable all-in-one mail server
- [docker-mailserver](https://talira.ai/catalog/docker-mailserver-esy56gxp.md): Production-ready fullstack but simple mail server running inside a container
- [iRedMail](https://talira.ai/catalog/iredmail-05vy41js.md): Full-featured, open source mail server solution for mainstream Linux/BSD distributions
- [Stalwart](https://talira.ai/catalog/stalwart-yv5m99n7.md): Secure, scalable mail & collaboration server with comprehensive protocol support
- [mailcow](https://talira.ai/catalog/mailcow-v4t1mq41.md): The mailserver suite with the 'moo'
- [Mailu](https://talira.ai/catalog/mailu-gdhzmh0h.md): Insular email distribution - mail server as Docker images

## Sources

[^1]: https://github.com/mail-in-a-box/mailinabox/blob/main/README.md (checked 19 Nov 2026)
[^2]: https://mailinabox.email/ (checked 19 Nov 2026)
[^3]: https://github.com/mail-in-a-box/mailinabox/blob/main/LICENSE (checked 19 Nov 2026)
