Mail-in-a-Box is a self-hosted email server solution that turns a fresh Ubuntu LTS machine into a working mail system with a web-based management interface.
It’s designed to make running your own email service much easier by automating installation and configuration of core mail components, webmail, contact and calendar synchronization, DNS records, TLS certificates, backups, monitoring, and other supporting services.
This is free and open source software.
Key Features
- Provides SMTP and IMAP services for sending and receiving email.
- Includes Roundcube webmail for browser-based access to mailboxes.
- Supports contacts and calendar synchronization with CardDAV and CalDAV.
- Configures important email DNS records such as SPF, DKIM, DMARC, DNSSEC, DANE TLSA, MTA-STS, and SSHFP.
- Automatically provisions TLS certificates with Let’s Encrypt.
- Offers spam filtering, greylisting, firewalling, and intrusion protection.
- Includes a control panel for managing users, aliases, DNS records, and backups.
- Performs comprehensive health checks for services, ports, certificates, and DNS configuration.
- Provides an API for control panel actions.
- Supports hosting mail for multiple users and multiple domains.
- Can also serve simple static websites.
Website: github.com/mail-in-a-box/mailinabox
Support:
Developer: Joshua Tauberer and contributors
License: CC0 1.0 Universal
Mail-in-a-Box is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Email Servers | |
|---|---|
| Exim | Highly configurable mail transfer agent |
| OpenSMTPD | Implementation of the server-side SMTP protocol with additional extensions |
| mox | Modern, secure, all-in-one email server |
| DBMail | Enables storing and retrieving mail messages from a database |
| WildDuck | Opinionated email server |
| Stalwart | All-in-one mail and collaboration server |
| Mailu | Self-hosted mail server stack |
| Mail-in-a-Box | Self-hosted email server solution |
| Postfix | Popular mail transfer agent |
| Maddy | Composable all-in-one mail server |
| Haraka | Modern SMTP server |
| Dovecot | Secure POP3 server that supports mbox and maildir mailboxes |
| Courier | Integrated mail/groupware server |
| Cyrus IMAP | Email, contacts and calendar server |
| Zimbra | Zimbra Collaboration Suite |
| Modoboa | Mail hosting and management platform |
| Citadel | Exchange-killer groupware server |
| chasquid | SMTP server with a focus on simplicity, security, and ease of operation |
| Sendmail | Mail transfer agent for sophisticated mail configurations |
| qmail | Written as a more secure replacement for the Sendmail program |
| dma | DragonFly Mail Agent |
| DavMail | POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.