talira

Mail-in-a-Box

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

open sourceCC0-1.0self-hostablefree

Mail-in-a-Box turns a fresh Ubuntu 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 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 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).

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 work1
  • Doesn't install in containers or on modified images: it needs a fresh Ubuntu 22.04 LTS 64-bit machine2
  • Doesn't offer configuration options for power users: there are basically no setup options, and config files can't be edited after install2

Capabilities

Has an APIplan not known

Alternatives

The same job

These do what Mail-in-a-Box does.

  1. Maddy Mail Server Composable all-in-one mail server
  2. docker-mailserver Production-ready fullstack but simple mail server running inside a container
  3. iRedMail Full-featured, open source mail server solution for mainstream Linux/BSD distributions
  4. Stalwart Secure, scalable mail & collaboration server with comprehensive protocol support
  5. mailcow The mailserver suite with the 'moo'
  6. Mailu Insular email distribution - mail server as Docker images

Compare Mail-in-a-Box with the top 3