# Mail-in-a-Box

> Mail-in-a-Box is a free, open-source app you can self-host in the email servers category. Turns any Ubuntu server into a fully functional mail server with one command. It has 15,435 GitHub stars, is released under the CC0-1.0 license. It is a self-hosted alternative to Gmail.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/mail-in-a-box/mailinabox |
| Website | https://mailinabox.email/ |
| GitHub stars | 15,435 |
| Forks | 1,553 |
| Open issues | 552 |
| License | CC0-1.0 |
| License type | Open source |
| Language | Python |
| Docker image | No |
| Platforms | Shell |
| Categories | Email Servers |
| Commits, last 12 months | 20 |
| Last commit | Sep 26, 2026 |
| Latest release | v77 (Sep 26, 2026) |
| Created | Aug 21, 2013 |
| Maintenance | Actively maintained |
| Archived | No |

Topics: smtp, email, mail, server

## Install

Mail-in-a-Box installs natively; follow the README at https://github.com/mail-in-a-box/mailinabox.

Need it installed for you? [appsgit installation help](https://appsgit.com/services/install): a fixed quote by email, single app installs from $79.

## Mail-in-a-Box replaces

- [Gmail alternatives](https://appsgit.com/alternatives/gmail): Google's email service with web and mobile apps.

## Similar apps in Email Servers

- [docker-mailserver](https://appsgit.com/apps/docker-mailserver): Production-ready fullstack but simple mail server (SMTP, IMAP, LDAP, Antispam, Antivirus, etc.) running inside a container. Only configuration files, no SQL database. (18,903 stars, MIT, Shell, Docker)
- [Postal](https://appsgit.com/apps/postal): Complete and fully featured mail server for use by websites & web servers. (16,854 stars, MIT, Ruby, Docker)
- [Stalwart Mail Server](https://appsgit.com/apps/stalwart-mail-server): All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features. (14,971 stars, AGPL-3.0, Rust, Docker)
- [Mailcow](https://appsgit.com/apps/mailcow): Mail server suite based on Dovecot, Postfix and other open source software, that provides a modern Web UI for administration. (13,563 stars, GPL-3.0, JavaScript, Docker)
- [Mailu](https://appsgit.com/apps/mailu): Simple yet full-featured mail server as a set of Docker images. (7,537 stars, MIT, Python, Docker)
- [Roundcube](https://appsgit.com/apps/roundcube): Browser-based IMAP client with an application-like user interface. (7,207 stars, GPL-3.0, PHP)
- [SimpleLogin](https://appsgit.com/apps/simplelogin): Open source email alias solution to protect your email address. Comes with browser extensions and mobile apps. (7,037 stars, AGPL-3.0, Python, Docker)
- [Maddy Mail Server](https://appsgit.com/apps/maddy-mail-server): All-in-one mail server that implements SMTP (both MTA and MX) and IMAP. Replaces Postfix, Dovecot, OpenDKIM, OpenSPF, OpenDMARC with single daemon. (6,099 stars, GPL-3.0, Go)

---

Canonical page: https://appsgit.com/apps/mail-in-a-box
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
