#1
Stalwart is an all-in-one mail and collaboration server written in Rust that speaks JMAP, IMAP, POP3, SMTP, CalDAV, CardDAV and WebDAV.
- GitHub stars
- 16k
- Last commit
- 3 days ago
- Latest release
- v1.1.0
- Self-hosted
- Yes
stalw.art
Stalwart is an open-source mail and collaboration server written in Rust and designed to be secure, fast, robust and scalable. It supports JMAP, IMAP4, POP3, SMTP, CalDAV, CardDAV and WebDAV, so a single server can handle email, calendars, contacts and file storage.
On the email side it offers JMAP for Mail and Sieve, IMAP4rev2 and IMAP4rev1 with ManageSieve, and POP3. The SMTP server includes DMARC, DKIM, SPF and ARC for message authentication, transport security through DANE, MTA-STS and TLS reporting, automated DKIM key rotation, throttling and filtering rules, sieve scripting and milter integration, and distributed virtual queues.
The collaboration features cover CalDAV and JMAP for Calendars, CardDAV and JMAP for Contacts, and WebDAV and JMAP for File Storage, with fine-grained sharing through WebDAV ACL and JMAP Sharing. A built-in spam and phishing filter includes a rule set and LLM-driven message analysis. It is self-hosted software that administrators run on their own servers.
Key features
- JMAP, IMAP4, POP3 and SMTP servers
- Calendars, contacts and file storage
- DMARC, DKIM, SPF and ARC support
- Built-in spam and phishing filter
- Fine-grained sharing and access controls
- Written in Rust for speed and safety
Pricing: The Community edition is free. Enterprise is priced per mailbox per year from $2.40 (25 to 499 mailboxes) with lower rates at volume, plus a 30-day trial.
#2
Docker Mailserver is a containerized, configuration-file-based mail server bundling SMTP, IMAP, LDAP support, anti-spam and anti-virus.
- GitHub stars
- 20k
- Last commit
- 2 days ago
- Latest release
- v17.0.0
- Licence
- MIT
- Self-hosted
- Yes
docker-mailserver.github.io
Docker Mailserver runs a complete mail server inside a container. It bundles SMTP and IMAP services (Postfix and Dovecot, according to the project topics), optional LDAP authentication, and anti-spam and anti-virus tooling, so a self-hoster does not have to assemble each piece separately.
The design is deliberately simple: it uses configuration files only, with no SQL database, which keeps setups easy to version, deploy and upgrade. Related topics include fail2ban and Rspamd. The documentation covers initial setup, environment variables, updating and an FAQ, and the project asks users to match the documentation version to the image version they run.
Docker Mailserver is released under the MIT license and has been maintained by volunteers since January 2021. It is a self-hosting project with no hosted offering, suited to administrators who want to run their own mail on a server they control.
Key features
- Postfix SMTP and Dovecot IMAP in one container
- Optional LDAP authentication
- Anti-spam and anti-virus included
- Fail2ban protection against brute-force logins
- Configuration files only, no SQL database
- Simple versioning and upgrades
Pricing: Free and open source under the MIT license.
#3
Dockerized mail server suite combining SMTP, IMAP, spam filtering and webmail so you can host your own email and groupware.
- GitHub stars
- 14k
- Last commit
- 2 days ago
- Latest release
- 2026-11
- Licence
- GPL-3.0
- Self-hosted
- Yes
mailcow.email
mailcow: dockerized is an open-source mail server package that runs as a set of Docker containers managed with Docker Compose. It bundles the pieces needed to run your own email, so administrators do not have to assemble and configure each component separately.
The stack is built around established open-source software: Postfix for SMTP, Dovecot for IMAP, Rspamd for spam filtering, ClamAV for antivirus scanning, SOGo for groupware and webmail, and ACME support for certificates. A web administration interface sits on top. Topics in the repository also mention the Olefy component for document scanning.
mailcow is released under the GNU General Public License v3 and installed on your own server following the official documentation. It is managed and maintained by The Infrastructure Company GmbH, and the project offers support contracts through Servercow as well as a one-time support payment option. The community gathers on Telegram, Mastodon and GitHub Sponsors.
Key features
- Complete mail server in Docker containers
- Postfix and Dovecot for SMTP and IMAP
- Rspamd spam filtering and ClamAV scanning
- SOGo webmail and groupware
- Automatic certificates through ACME
- Web interface for administration
Pricing: Free and open source under GPL-3.0; paid support contracts are offered through Servercow.
#4
Thunderbird for Android is an open-source, privacy-focused email app for managing multiple accounts, based on K-9 Mail.
- GitHub stars
- 14k
- Last commit
- 2 days ago
- Latest release
- K9MAIL_25_0
- Licence
- Apache-2.0
- Self-hosted
- Yes
thunderbird.net
Thunderbird for Android is an open-source email app for Android that manages multiple email accounts from one place, with an optional Unified Inbox. It is the Android edition of Thunderbird, developed by a team of developers with help from a community of volunteers, and it is based on K-9 Mail, formerly the project's name. It is written in Kotlin.
The project states that Thunderbird never treats private data as a product. The app can be installed from Google Play or F-Droid, in stable or beta versions, from GitHub releases, through FFUpdater, or with Obtainium. The beta channel gives early access to features still under development, and signing certificate fingerprints are published in the security document.
Help comes from a knowledge base, a support forum and a GitHub issue tracker, and feature ideas are discussed on connect.mozilla.org. Release notes describe what changed in each version. The app is released under the Apache 2.0 license and runs on the phone itself, connecting to the email providers you configure.
Key features
- Multiple email accounts in one app
- Unified Inbox option
- Stable and beta release channels
- Available on Google Play and F-Droid
- Based on K-9 Mail
- Written in Kotlin
Pricing: Free and open source under the Apache 2.0 license.
#5
Tuta Mail is an encrypted email, contacts and calendar service with open-source clients for web, desktop and mobile devices, focused on privacy.
- GitHub stars
- 8.2k
- Last commit
- 2 days ago
- Latest release
- tutanota-release-368.261110.0
- Licence
- GPL-3.0
- Self-hosted
- No
- Hosted version
- Available
tuta.com
Tuta, formerly known as Tutanota, is an email service built around security and privacy. It uses built-in end-to-end encryption to protect emails, contacts and calendar entries across devices, and it lets users communicate securely with other people regardless of what provider they use.
The open-source repository contains the client applications, which include a web client, an iOS app and a desktop client, along with separate calendar releases for mobile platforms. The code is written in TypeScript and JavaScript on top of the Mithril framework and is licensed under GPL-3.0. Build, translation and development instructions are provided in dedicated files, and the roadmap and feature requests are handled through Reddit and the vendor website.
Tuta is a hosted service operated by the vendor rather than a product you install on your own server. The repository states that it does not accept contributions or bug reports produced with the help of large language models, and maintainers close such submissions without explanation.
Key features
- End-to-end encrypted email
- Encrypted contacts and calendar entries
- Web, desktop and iOS clients
- Open-source client code
- Community translations
Pricing: Free plan with 1 GB of storage, plus paid Revolutionary (20 GB) and Legend (500 GB) plans. Plan prices were not visible on the page, so check the vendor site.
#6
Mail-in-a-Box turns a fresh Ubuntu server into a complete self-hosted mail server with webmail, DNS, spam filtering and automatic TLS.
- GitHub stars
- 15k
- Last commit
- 5 days ago
- Latest release
- v77
- Licence
- CC0-1.0
- Self-hosted
- Yes
mailinabox.email
Mail-in-a-Box helps individuals take back control of their email by providing a one-click, easy-to-deploy mail server in a box. It turns a fresh Ubuntu 22.04 LTS 64-bit machine into a working mail server by installing and configuring the required components. There are no user-configurable setup options, so it is designed to just work.
The installed components include Postfix for SMTP, Dovecot for IMAP, Nextcloud for CardDAV and CalDAV, z-push for Exchange ActiveSync, and Roundcube webmail. It adds spam filtering with SpamAssassin and greylisting with Postgrey, DNS with SPF, DKIM, DMARC, DNSSEC, DANE TLSA, MTA-STS and SSHFP records set automatically, and TLS certificates from Let's Encrypt. Backups use duplicity, with ufw, fail2ban and munin for protection and monitoring.
Project goals include making a good mail server easy to deploy, promoting decentralization and privacy, and keeping configuration automated, auditable and idempotent. It deliberately does not aim to be customizable by power users. Mail-in-a-Box is written in Python, released into the public domain under CC0-1.0, and has a Code of Conduct for contributors.
Key features
- One-click mail server on Ubuntu 22.04
- Postfix SMTP and Dovecot IMAP
- Roundcube webmail and Nextcloud contacts
- Automatic SPF, DKIM, DMARC and DNSSEC setup
- Let's Encrypt TLS certificate provisioning
- Backups, fail2ban and health monitoring
Pricing: Free and open source, released under CC0-1.0.
#7
Mailu is a free mail server packaged as Docker images, bundling SMTP, IMAP, webmail, spam filtering and an admin interface for self-hosters.
- GitHub stars
- 7.6k
- Last commit
- 3 days ago
- Latest release
- 2024.06.68
- Self-hosted
- Yes
mailu.io
Mailu is a full-featured mail server delivered as a set of Docker images. The project aims to give people an easily set up and maintained mail server made entirely of free software, without proprietary components or unrelated groupware features and without trackers.
It covers the standard email server functions, IMAP and SMTP with client auto-configuration profiles, along with aliases, domain aliases, custom routing and full-text search of attachments. Users get webmail, auto-reply, auto-forward and managesieve, while admins get global admin roles, per-domain delegation, announcements and quotas. Security features include enforced TLS, DANE, MTA-STS, Let's Encrypt certificates, outgoing DKIM and an antivirus scanner, and antispam features include greylisting, auto-learning, DMARC, SPF and anti-spoofing checks.
Mailu is written in Python and deployed with Docker or Docker Compose. The project's own configuration files, Dockerfiles and code are MIT-licensed, and all bundled components are free software compatible with it. A demo server and website documentation are provided.
Key features
- IMAP and SMTP mail server in Docker
- Webmail and admin interface
- Aliases, domain aliases and custom routing
- Enforced TLS, DKIM, DANE and MTA-STS
- Spam filtering with greylisting and SPF
- Per-domain admin delegation and quotas
Pricing: Free and open source; the project's own code and configuration are MIT-licensed.
#8
Roundcube Webmail is a browser-based, multilingual IMAP email client with an address book, folder management, search and a plugin API, written in PHP.
- GitHub stars
- 7.3k
- Last commit
- 2 days ago
- Latest release
- 1.7.6
- Licence
- GPL-3.0
- Self-hosted
- Yes
roundcube.net
Roundcube Webmail is a multilingual IMAP client that runs in the browser and behaves like a desktop application. It offers the functions people expect from an email client, such as MIME support, an address book, folder management, message search and spell checking, without installing anything on their own computers.
It is written in PHP and JavaScript and requires MariaDB, MySQL, PostgreSQL or SQLite as its database. A plugin API makes it extensible, and the user interface can be customized with skins. The client uses jQuery 3.x and inherits its browser support, covering current versions of Chrome, Edge, Firefox and Safari. Releases follow semantic versioning, and the README ships separate install and upgrade guides.
Roundcube is licensed under GPL-3.0 and is installed on a web server that connects to an existing IMAP mail server. Note that the repository README warns that the Git snapshot is not a stable version and should not replace a production installation.
Key features
- Browser-based multilingual IMAP client
- MIME support and address book
- Folder management and message search
- Spell checking
- Plugin API for extensions
- Skins for interface customization
Pricing: Free and open source under the GPL-3.0 licence.
#9
A privacy-oriented, open-source email client for Android that works with virtually any provider and supports unlimited accounts, PGP and S/MIME.
- GitHub stars
- 4.8k
- Last commit
- yesterday
- Latest release
- 1.2340
- Licence
- GPL-3.0
email.faircode.eu
FairEmail is an open-source email app for Android that is designed around privacy and a deliberately minimal interface. It is an email client only, so you bring your own address, and it works with virtually all providers, including Gmail, Outlook and Yahoo, using standard protocols such as IMAP, POP3 and SMTP.
The app supports unlimited accounts and addresses, a unified inbox, conversation threading, two-way synchronization, push notifications and offline storage and operations. Privacy features include OpenPGP and S/MIME encryption, a safe message view that strips unsafe HTML and scripting, confirmation before showing images or opening links, detection of tracking images, and warnings when a message cannot be authenticated.
FairEmail is written in Java, licensed under GPL-3.0 and provided by FairCode B.V. It does not store data on third-party servers. Non-standard protocols such as Microsoft Exchange Web Services and ActiveSync are not supported, and the app runs a foreground service with a low-priority notification so new mail is not missed.
Key features
- Unlimited accounts and email addresses
- Unified inbox with conversation threading
- OpenPGP and S/MIME encryption
- Tracking image detection and link confirmation
- Push notifications and offline operation
- Material design with dark theme
#10
Source code monorepo for the Proton web clients, covering Proton Mail, Calendar, Drive, VPN, Pass and other apps built with TypeScript and React.
- GitHub stars
- 5.7k
- Last commit
- yesterday
- Latest release
- proton-authenticator@1.1.6
- Licence
- GPL-3.0
- Hosted version
- Available
Webclients is the monorepo that holds the source for the Proton web applications. It includes the apps themselves, their dependencies, shared modules and the tooling used to develop them, covering products such as Proton Mail, Calendar, Drive, Account, VPN, Pass, Wallet, Lumo and Meet.
The monorepo is based on pnpm workspaces with unified versioning across all packages, and the apps are written in TypeScript with React. The README explains the prerequisites for working on the code, how to version an application manually, and how the VPN app differs because it is served from two separate domains with their own entry points.
The code is published under GPL-3.0 and the project invites community help with translations. Because it contains client-side applications for Proton's own services, it is mainly of interest to developers who want to inspect, audit or contribute to the code behind those web apps rather than to people looking for a standalone self-hosted product.
Key features
- Source for Proton Mail and Calendar web apps
- Proton Drive, VPN and Pass web clients
- Shared component and utility packages
- pnpm workspace monorepo with unified versioning
- Tooling for building and versioning applications
- Community translation contributions
3 more Gmail alternatives
Gmail alternatives: questions
- What is the best open-source alternative to Gmail?
- Stalwart is the top-ranked open-source alternative to Gmail on Enlisted: Stalwart is an all-in-one mail and collaboration server written in Rust that speaks JMAP, IMAP, POP3, SMTP, CalDAV, CardDAV and WebDAV. Other strong options are docker-mailserver, Mailcow, Thunderbird for Android and Tuta.
- What are the best commercial alternatives to Gmail?
- Microsoft Outlook, Proton Mail, Yahoo Mail, Apple Mail and Zoho Mail are among the hosted, closed-source alternatives to Gmail listed on Enlisted, which lists 21 in total. Compare their pricing and features on each tool page.
- Are these Gmail alternatives free?
- All 13 are open source, so the code is free to use under its licence, and 12 of them can be self-hosted on your own server or computer. 3 also offer a paid or managed cloud version if you'd rather not host it yourself.
- How is this list of Gmail alternatives ranked?
- By a score built from GitHub stars, star growth over the last 30 days and how recently the code changed. 13 of these projects shipped code in the last 30 days. Data is refreshed daily, and nobody can pay to move up.