Gmail logo

20 self-hosted Gmail alternatives

Google's cloud-hosted email service providing a webmail interface and mobile apps, IMAP/POP/SMTP access, spam filtering, search, labels/folders, storage quotas, and integration with Google Workspace for personal and business email hosting and collaboration.

Alternatives to Gmail

Mail-in-a-Box is a one-click mail server appliance for Ubuntu, bundling SMTP/IMAP, webmail, DNS, TLS automation, backups, and an admin control panel.

Mail-in-a-Box screenshot

15.4k stars1.5k forksCC0-1.0last commit Actively maintained

Mailu is a full-featured mail server distributed as Docker images, providing SMTP/IMAP/POP3, webmail, administration UI, and built-in security and anti-spam features.

Mailu screenshot

7.5k stars997 forkslast commit Actively maintained

Open source webmail client for IMAP with address book, search, folders, and a customizable UI via plugins and skins.

Roundcube screenshot

7.1k stars1.8k forksGPL-3.0last commit Actively maintained

Go-based, modular mail server implementing SMTP/LMTP/IMAP with built-in DKIM/SPF/DMARC, storage backends (SQLite/Postgres/S3), Prometheus metrics and Docker support.

Maddy Mail Server screenshot

6.1k stars326 forksGPL-3.0last commit Actively maintained

#8

All-in-one secure mail server with SMTP, IMAP, webmail, automatic TLS (ACME), and built-in SPF/DKIM/DMARC plus junk filtering for low-maintenance domains.

Mox screenshot

5.8k stars218 forksMITlast commit Actively maintained

Modoboa is an open source mail server management platform with a modern web UI, integrating Postfix and Dovecot with admin tools, webmail, calendar, and address book.

Modoboa screenshot

3.5k stars481 forksISClast commit Actively maintained

A Bash script that auto-implements a full mail server (Postfix, Dovecot, DKIM, SpamAssassin) with TLS and PAM-based logins on Debian/Ubuntu.

emailwiz screenshot

2.2k stars341 forksGPL-3.0last commit Slowing down

#11

Open source groupware suite providing webmail, calendaring, address books, and shared resources via open standards like IMAP, CalDAV, and CardDAV.

SOGo screenshot

2.2k stars320 forksGPL-2.0last commit Actively maintained

WildDuck is a horizontally scalable IMAP/POP3 mail server that stores all mail in MongoDB, runs stateless Node.js workers, and provides a REST API for full server control.

WildDuck screenshot

2.1k stars278 forksEUPL-1.2last commit Actively maintained

Automated open-source mail server installer bundling Postfix, Dovecot, webmail, anti-spam/antivirus and LDAP/SQL backends for mainstream Linux/BSD.

iRedMail screenshot

1.8k stars260 forksGPL-3.0last commit Actively maintained

SnappyMail is a fast, modern webmail client (RainLoop fork) focused on performance, privacy, and secure IMAP access with optional PGP support and admin controls.

SnappyMail screenshot

1.7k stars215 forksAGPL-3.0last commit Actively maintained

High-performance, standards-compliant IMAP/POP3/LMTP server with flexible authentication, extensible plugin system (Lua, Sieve) and OpenSSL TLS support.

Dovecot screenshot

1.2k stars347 forkslast commit Actively maintained

Nextcloud Mail is a webmail app that connects to IMAP/SMTP accounts, offering a unified inbox and deep integration with other Nextcloud apps like Contacts and Calendar.

Nextcloud Mail screenshot

1k stars340 forksAGPL-3.0last commit Actively maintained

Cyrus IMAP is a secure, scalable mail server providing IMAP/JMAP email plus CalDAV/CardDAV contacts and calendars, with ACLs, quotas, search, and replication.

Cyrus IMAP screenshot

643 stars175 forkslast commit Actively maintained

Integrated installer and platform for home infrastructure. Provides VPN relay for NAT traversal, preconfigured email, automatic HTTPS, reverse proxy, and a web management utility.

HomeServerHQ screenshot

69 stars7 forksGPL-3.0last commit Actively maintained

What replacing Gmail actually involves

Every option on this page is open source and free to run on your own hardware, so you own the data and there is no subscription to cancel. 17 of 20 shipped a commit in the last six months. Licences in this list: MIT, CC0-1.0, GPL-3.0, ISC, GPL-2.0. In exchange you take on hosting, backups and updates yourself.

Browse everything in Email Servers (SMTP/IMAP).

Other tools people replace alongside Gmail