Mail-in-a-Box
Turns any Ubuntu server into a fully functional mail server with one command.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Introduction
Mail-in-a-Box aims to make it easy for anyone to become their own email provider in just a few steps. The official website describes it as "a bit like setting up your own Gmail, but with you in control from start to finish." Technically, it turns a brand-new cloud server directly into a working mail server, and you don't need to be a technical expert to set it up.
The project was released in August 2014 as a CC0 public domain dedication, and its source code is hosted on GitHub. At the time of writing, the latest version shown on the official website is v76.
Key Features
- Webmail and mail protocols: Includes the Roundcube webmail client and provides IMAP/SMTP services, so both mobile and desktop mail clients can connect
- Contacts and calendar sync: Nextcloud provides contact and calendar synchronization
- Anti-spam: Supports spam filtering and greylisting
- Common mail features: Mail filtering rules, and automatic configuration for mail clients
- Automatic backups: Can automatically back up to services such as Amazon S3
- Automatic DNS configuration: Once Mail-in-a-Box acts as the name server for your domain, it automatically sets up records such as SPF, DKIM, DMARC and MTA-STS that affect deliverability and security; you can also enable DNSSEC and DANE TLSA
- Automatic TLS certificates: Certificates are obtained automatically through Let's Encrypt
- Multiple users and domains: One server can host email for multiple users and multiple domains
- Static website hosting: Can host simple static websites, and you can also add custom DNS records in the control panel to point a website elsewhere
- Web control panel: Manage mailbox accounts, aliases, custom DNS records and backups; you can also view DNS status checks and system monitoring, and login supports TOTP two-factor authentication
- RESTful API: The control panel's functions can also be called through an HTTP API
Target Users and Use Cases
- Privacy-conscious individuals who want to move away from large email providers such as Gmail
- Users who want to provide email for family members or a small team using their own domain
- Self-hosting enthusiasts who want an out-of-the-box setup and don't want to configure many mail protocols by hand
Installation and Deployment
Prerequisites:
- A domain name
- A completely fresh Ubuntu 22.04 x64 server running in the cloud. Containers and modified system images are not supported
Installation command:
curl -s https://mailinabox.email/setup.sh | sudo bash
After running the script, enter the email address you want to use when prompted, then answer a few configuration questions. The script installs (and also removes) and configures dozens of Ubuntu packages, and sets up the control panel as well. See the official setup guide for the full steps. According to user feedback, it usually takes a few hours to get the system fully up and running.
If you are upgrading from version 5x or earlier, you must first migrate to Ubuntu 22.04. See the official release announcement for details.
Core Strengths
- Turnkey solution: The dozens of protocols and configurations involved in a modern mail system are all handled automatically
- Good security: Automatically configures SPF, DKIM, DMARC, MTA-STS and TLS, with optional DNSSEC and DANE TLSA
- Permissive license: Released as CC0 public domain
- Active community: Has a forum, a Slack chat room, and maintenance guides and advanced configuration documentation
Things to Note
- Almost nothing is configurable: The project values simplicity, so you can't change system configuration files yourself after installation. If you need a more flexible solution, the official recommendation is iRedMail or Modoboa
- Deliverability is not fully under your control: Other mail services may block email from self-hosted servers or classify it as spam. All self-hosted mail servers run into this problem
- Limited maintainer resources: The project is developed by maintainers in their spare time, so your experience may vary
- Before use, you need to agree to the CC0 license and Let's Encrypt's terms of service
Discover more
Enigma 1/2 BBS
Enigma 1/2 is a modern, multi-platform BBS engine with unlimited "callers" and legacy DOS door game support.
Syndie
Syndie is a libre system for operating distributed forums.
emailwiz
Luke Smith's bash script to completely automate the setup of a Postfix/Dovecot/SpamAssassin/OpenDKIM server on debian.
homebox
Suite of Ansible scripts to deploy a fully functional mail server on Debian. Unobtrusive and automatic as much as possible, focusing on stability and security.
iRedMail
Full-featured mail server solution based on Postfix and Dovecot.
3CX
Full-featured PABX system, with call queues, built-in web conferencing, live chat and social media messaging all on one system.