Open Source Alternatives to Gmail

Updated 5 December 2026 · 5 alternatives · Email

Gmail is Google's email service, with more than a billion users. Mail is stored on Google's servers and tied to your Google account. Here are 5 open source alternatives, 3 of them self-hostable and 2 you can install as an app.
Top pickProton MailGPL-3.0 · ★ 5.7k
Best self-hostedStalwart Mail ServerAGPL-3.0 · ★ 16.8k
Best appProton MailGPL-3.0 · ★ 5.7k
Gmail is made byGoogle (Alphabet)Proprietary

Gmail alternatives compared

Project Licence Type Self-host Cloud option GitHub stars
Proton Mail GPL-3.0 Mobile app — ✓ Yes ★ 5.7k
Stalwart Mail Server AGPL-3.0 Self-hosted ✓ Yes — ★ 16.8k
mailcow GPL-3.0 Self-hosted ✓ Yes — ★ 13.9k
Tuta GPL-3.0 Mobile app — ✓ Yes ★ 8.2k
Roundcube GPL-3.0 Self-hosted ✓ Yes — ★ 7.3k

The 5 open source alternatives to Gmail

1

Proton Mail

GPL-3.0 · Mobile app · ★ 5.7k on GitHub · since 2014

Visit site ↗

Proton Mail is an end-to-end encrypted email service from Switzerland with more than 100 million accounts. All its apps are open source and independently audited, and it includes a calendar, drive, VPN and password manager in the same account.

Note: Proton's apps are open source, but its server software is not, so it can't be self-hosted.

  • End-to-end and zero-access encryption
  • Open source, audited apps
  • Free plan available
  • Calendar, Drive, VPN and Pass included
Cloud option Source code ↗ Also replaces Microsoft Outlook
2

Stalwart Mail Server

AGPL-3.0 · Self-hosted · ★ 16.8k on GitHub · since 2022

Visit site ↗

Stalwart is a modern, secure mail server written in Rust that supports JMAP, IMAP, POP3 and SMTP, plus CalDAV and CardDAV. It includes spam filtering, DKIM, SPF and DMARC out of the box.

Note: The community edition is AGPL-3.0; enterprise features are under a separate licence.

  • JMAP, IMAP, POP3 and SMTP
  • CalDAV and CardDAV built in
  • Built-in spam and phishing filter
  • Written in memory-safe Rust
Self-hosted Source code ↗ Also replaces Microsoft Exchange
3

mailcow

GPL-3.0 · Self-hosted · ★ 13.9k on GitHub · since 2016

Visit site ↗

mailcow bundles everything you need to run your own mail server in Docker: Postfix, Dovecot, Rspamd spam filtering, SOGo webmail and calendar, and an admin interface for domains and mailboxes.

  • Complete mail stack in Docker
  • SOGo webmail, calendar and contacts
  • Rspamd spam filtering
  • ActiveSync for phones
Self-hosted Source code ↗ Also replaces Microsoft Exchange
4

Tuta

GPL-3.0 · Mobile app · ★ 8.2k on GitHub · since 2011

Visit site ↗

Tuta (formerly Tutanota) is an encrypted email and calendar service from Hanover, Germany. Its clients are open source, it encrypts subject lines and calendars too, and it uses post-quantum cryptography for new accounts.

Note: Tuta's apps are open source, but its server software is not, so it can't be self-hosted.

  • Encrypts subjects, contacts and calendars
  • Post-quantum encryption
  • Open source clients
  • Free plan available
Cloud option Source code ↗ Also replaces Microsoft Outlook
5

Roundcube

GPL-3.0 · Self-hosted · ★ 7.3k on GitHub · since 2008

Visit site ↗

Roundcube is a browser-based email client that connects to any IMAP server. Many hosting providers offer it as their webmail, and it has a large plugin ecosystem. It became part of Nextcloud in 2023.

  • Works with any IMAP server
  • Drag-and-drop interface
  • Plugins for calendars, encryption and filters
  • Easy to install on PHP hosting
Self-hosted Source code ↗

How to choose an open source alternative to Gmail

Decide whether you want an open source hosted provider or to run your own mail server. Self-hosting email is possible but demands care with spam filtering and deliverability.

If you want your data on your own server, look at Stalwart Mail Server, mailcow and Roundcube. If you'd rather just install an app, Proton Mail and Tutarun directly on your device. Don't want to run a server? Proton Mail and Tutaoffer an official hosted version.

Not sure where to start? Browse all email projects, or see our google alternatives list.

Gmail alternatives: FAQ

What is the best open source alternative to Gmail?

Proton Mail is the most complete open source alternative to Gmail on our list, followed by Stalwart Mail Server and mailcow. The best choice depends on what you need: Decide whether you want an open source hosted provider or to run your own mail server. Self-hosting email is possible but demands care with spam filtering and deliverability.

Is there a free alternative to Gmail?

Yes. Every alternative listed here is open source, so the software itself is free to use. Some, such as Proton Mail and Tuta, also sell an optional hosted version if you don't want to run it yourself.

Can I self-host an alternative to Gmail?

Yes: Stalwart Mail Server, mailcow and Roundcube can all be installed on your own server, so your data stays on infrastructure you control.

Is there an open source Gmail alternative I can install as an app?

Proton Mail (mobile app) and Tuta (mobile app) run directly on your device, with no server needed.

Why switch from Gmail to open source software?

Gmail is proprietary software owned by Google (Alphabet): you can't see the code, and pricing, features and terms can change at any time. Open source alternatives publish their code under licences such as GPL-3.0 and AGPL-3.0, can be audited by anyone, and can't lock you in, because the software can always be forked or self-hosted.

Other popular alternatives

Browse 350+ open source alternativesSearch by product, category or licence