7,363 open-source and SaaS tools, with GitHub stats refreshed every day.

14 alternatives ranked by real activity

Open-source Gmail alternatives

A curated, ranked list of the 14 best open-source alternatives to Gmail.

The best open-source alternative to Gmail is docker-mailserver. If that doesn't suit you, other good options are Mail-in-a-Box, Stalwart, Thunderbird for Android and Mailcow.

Gmail alternatives are mainly email clients & servers. 13 of them shipped code in the last 30 days, 13 can be self-hosted, and 4 use a permissive licence.

Last updated October 2, 2026 · ranked by GitHub stars, growth and recent commits

docker-mailserver

Docker Mailserver is a containerized, configuration-file-based mail server bundling SMTP, IMAP, LDAP support, anti-spam and anti-virus.

GitHub stars
19k
Last commit
2 days ago
Latest release
v16.0.1
Licence
MIT
Self-hosted
Yes
docker-mailserver.github.iodocker-mailserver homepage screenshot

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.

Mail-in-a-Box

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
6 days ago
Latest release
v77
Licence
CC0-1.0
Self-hosted
Yes
mailinabox.emailMail-in-a-Box homepage screenshot

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.

Stalwart

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
15k
Last commit
today
Latest release
v0.16.24
Self-hosted
Yes
stalw.artStalwart homepage screenshot

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.

Thunderbird for Android

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
today
Latest release
K9MAIL_23_1
Licence
Apache-2.0
Self-hosted
Yes
thunderbird.netThunderbird for Android homepage screenshot

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.

Mailcow

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-09
Licence
GPL-3.0
Self-hosted
Yes
mailcow.emailMailcow homepage screenshot

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.

Tuta

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
8k
Last commit
today
Latest release
tuta-calendar-android-release-361.260929.0
Licence
GPL-3.0
Self-hosted
No
Hosted version
Available
tuta.comTuta homepage screenshot

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.

Mailu

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.5k
Last commit
yesterday
Latest release
2024.06.61
Self-hosted
Yes
mailu.ioMailu homepage screenshot

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.

Roundcube

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.2k
Last commit
today
Latest release
1.7.4
Licence
GPL-3.0
Self-hosted
Yes
roundcube.netRoundcube homepage screenshot

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.

Maddy

Maddy is a composable all-in-one mail server written in Go that handles SMTP, IMAP and email authentication in a single daemon.

GitHub stars
6.1k
Last commit
16 days ago
Latest release
v0.9.5
Licence
GPL-3.0
Self-hosted
Yes
maddy.emailMaddy homepage screenshot

Maddy Mail Server is a composable all-in-one mail server written in Go. It implements the functions needed to run an email server: it sends messages over SMTP as an MTA, accepts messages over SMTP as an MX and stores messages while providing access to them over IMAP.

It also implements the auxiliary protocols needed to keep email reasonably secure, including DKIM, SPF, DMARC, DANE and MTA-STS. The project positions itself as a replacement for a stack made of Postfix, Dovecot, OpenDKIM, OpenSPF, OpenDMARC and similar tools, using one daemon with a uniform configuration and low maintenance cost.

The README is candid that IMAP storage is still in beta. For a stable and feature-rich implementation of that part, the maintainers suggest using Dovecot instead, and Maddy can still handle message delivery. Maddy is licensed under GPL-3.0, and a setup tutorial, documentation, an IRC channel and a mailing list are available.

Key features

  • SMTP sending and receiving
  • IMAP message storage (beta)
  • DKIM, SPF and DMARC support
  • DANE and MTA-STS support
  • Single daemon with uniform configuration

Pricing: Free and open source under the GPL-3.0 licence.

Mox

Mox is a modern, full-featured open-source mail server for low-maintenance self-hosted email, with SMTP, IMAP, webmail and spam filtering.

GitHub stars
5.9k
Last commit
19 days ago
Latest release
v0.0.17
Licence
MIT
Self-hosted
Yes
xmox.nlMox homepage screenshot

Mox is a mail server for people who want to run email for their own domains with little ongoing effort. It aims to be quick to start and to maintain, and it bundles the pieces of an email stack in one program.

Features include SMTP for receiving, submitting and delivering mail, IMAP4 for client access, and webmail in the browser. Authentication covers SPF, DKIM and DMARC, including DMARC aggregate reports. Spam handling is based on per-user reputation tracking and Bayesian filtering, and senders with low reputation can be slowed down, similar to greylisting. It supports internationalized email, automatic TLS via ACME for Let's Encrypt, DANE and MTA-STS with TLSRPT reporting, and account autodiscovery. A web admin interface helps set up domains, accounts and aliases and shows the DNS records to create.

Mox is written in Go and licensed under MIT. It is self-hosted software, and the project website provides details and a quickstart.

Key features

  • SMTP, IMAP4 and built-in webmail
  • SPF, DKIM and DMARC authentication
  • Per-user Bayesian spam filtering
  • Reputation tracking for senders
  • Automatic TLS with ACME
  • DANE and MTA-STS support
  • Web admin interface for domains and accounts

Pricing: Free and open source under the MIT licence.

4 more Gmail alternatives

Gmail alternatives: questions

What is the best open-source alternative to Gmail?
docker-mailserver is the top-ranked open-source alternative to Gmail on Enlisted: Docker Mailserver is a containerized, configuration-file-based mail server bundling SMTP, IMAP, LDAP support, anti-spam and anti-virus. Other strong options are Mail-in-a-Box, Stalwart, Thunderbird for Android and Mailcow.
Are these Gmail alternatives free?
All 14 are open source, so the code is free to use under its licence, and 13 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.

People also look for alternatives to…

View all