Best Self-hosted Email Servers (SMTP/IMAP) tools in 2026

44 self-hosted open source alternatives in this category

44 services found

docker-mailserver

docker-mailserver

Containerized mail server stack for SMTP and IMAP with anti-spam

18k
2k
Last commit: 8d ago

Production-ready mail server stack in a Docker container with SMTP, IMAP/POP3, LDAP auth, anti-spam/AV, DKIM/DMARC, and optional OAuth2 support.

Alternative to:
Gmail
Gmail
+16
Postal

Postal

Open source mail delivery platform for inbound and outbound email

16.3k
1.2k
Last commit: 24d ago

Postal is an open source mail delivery platform for sending and receiving email, with SMTP support, web-based management, and tools for running your own SendGrid-style se...

Alternative to:
SendGrid
SendGrid
+10
Mail-in-a-Box

Mail-in-a-Box

Turnkey email server with webmail, DNS, TLS, and admin panel

15.2k
1.5k
Last commit: 24d ago

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.

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+15
mailcow: dockerized

mailcow: dockerized

Docker-based email server suite with a web admin interface

12.2k
1.6k
Last commit: 27d ago

Mailcow is a dockerized mail server suite providing SMTP/IMAP, webmail, anti-spam/anti-virus, and domain/mailbox administration via a unified web UI.

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+16
Stalwart Mail Server

Stalwart Mail Server

All-in-one mail and collaboration server for modern and legacy protocols

11.7k
650
Last commit: 10h ago

All-in-one open-source mail and collaboration server with SMTP, IMAP, JMAP, CalDAV, CardDAV, and WebDAV, plus integrated anti-spam and phishing protection.

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+19
Mailu

Mailu

Docker-based mail server with webmail and admin interface

7.1k
966
Last commit: 25d ago

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.

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+19
SimpleLogin

SimpleLogin

Open-source email aliasing and forwarding service

6.5k
563
Last commit: 17d ago

SimpleLogin is an open-source email alias service that lets you create aliases to protect your real inbox, forward mail, and reply or send from aliases using custom domai...

Alternative to:
SimpleLogin
SimpleLogin
+3
Maddy Mail Server

Maddy Mail Server

Composable all-in-one SMTP/IMAP mail server with security features

5.9k
309
Last commit: 1mo ago

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.

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+10
Haraka

Haraka

High-performance, extensible SMTP server built on Node.js

5.6k
694
Last commit: 4d ago

Haraka is a fast, event-driven SMTP server for receiving, filtering, and relaying email, featuring a modular plugin architecture for customization at scale.

Alternative to:
Postfix
Postfix
+11
Mox

Mox

Modern, secure, all-in-one mail server for self-hosted email

5.5k
181
Last commit: 2mo ago

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.

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+19
AnonAddy

AnonAddy

Anonymous email aliasing and forwarding with GPG support

4.5k
249
Last commit: 7d ago

Open-source anonymous email forwarding that creates and manages aliases, supports custom domains, encrypted forwarding, and self-hosting via Postfix and MariaDB.

Alternative to:
Addy.io (AnonAddy)
Addy.io (AnonAddy)
+3
Modoboa

Modoboa

Mail hosting and management platform with web UI and webmail

3.5k
455
Last commit: 13h ago

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.

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+16
YunoHost

YunoHost

Debian-based server OS and web control panel for self-hosted apps

2.8k
336
Last commit: 2d ago

Open-source Debian-based OS and control panel that simplifies installing, managing and securing web apps, mail and services via a web admin and app catalog.

Alternative to:
Cloudron
Cloudron
+19
AliasVault

AliasVault

End-to-end encrypted password manager with built-in email aliasing

2.2k
65
Last commit: 7h ago

Privacy-first, end-to-end encrypted password and email alias manager with passkeys, TOTP, apps and extensions, plus a built-in email server for self-hosting.

Alternative to:
SimpleLogin
SimpleLogin
+12
emailwiz

emailwiz

Bash-based installer that deploys a secure Debian/Ubuntu mail server stack.

2.1k
336
Last commit: 9mo ago

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

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+14
WildDuck

WildDuck

Scalable IMAP/POP3 mail server with MongoDB backend and REST API

2.1k
276
Last commit: 14h ago

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...

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+13
iRedMail

iRedMail

Open-source full-featured mail server stack for Linux/BSD

1.8k
251
Last commit: 9h ago

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

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+16
Dovecot

Dovecot

Secure IMAP, POP3 and LMTP server and email storage backend

1.2k
327
Last commit: 1d ago

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

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+15
OpenTrashmail

OpenTrashmail

Self-hosted disposable email inbox with web UI, API, RSS, webhooks

799
69
Last commit: 6mo ago

OpenTrashmail is a standalone disposable email (“trashmail”) service with its own SMTP server, offering a web UI plus JSON API, RSS feeds, and webhooks for received mail.

Alternative to:
Mailinator
Mailinator
+3
DavMail

DavMail

Exchange and Microsoft 365 gateway for standard mail and PIM protocols

704
102
Last commit: 3d ago

DavMail is a Java gateway that lets standard clients use IMAP/POP/SMTP, CalDAV, CardDAV, and LDAP with Microsoft Exchange and Microsoft 365 via OWA/EWS.

Alternative to:
Proton Mail Bridge
Proton Mail Bridge
Nortix Mail

Nortix Mail

Disposable email server with a simple self-hosted setup

700
58
Last commit: 8mo ago

Self-hosted disposable email server for creating temporary addresses to reduce spam and protect privacy, with an optional TLS setup and a web UI.

Alternative to:
Mailinator
Mailinator
+3
Cyrus IMAP

Cyrus IMAP

Email, contacts, and calendar server with IMAP and JMAP

620
161
Last commit: 10h ago

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

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+18
Hyvor Relay

Hyvor Relay

Open-source, self-hosted Email API for developers

457
22
Last commit: 11d ago

AGPL-3.0 open-source email API for developers that can be self-hosted; supports SMTP sending, webhooks, DNS automation, observability, multi-tenancy, and project isolatio...

Alternative to:
Amazon Simple Email Service (Amazon SES)
Amazon Simple Email Service (Amazon SES)
+11
Sympa

Sympa

Open-source mailing list management software

287
123
Last commit: 2mo ago

Open-source mailing list manager for automating subscriptions, moderation, archives and message distribution with web, CLI and SOAP interfaces for large lists.

Alternative to:
Groups.io
Groups.io
Piler

Piler

Open-source email archiving and eDiscovery platform

262
40
Last commit: 5d ago

Scalable email archiving solution with tamper-evident retention, full-text search, legal hold, deduplication and access controls for compliance.

Alternative to:
MailStore Server
MailStore Server
+1
DragonFly Mail Agent (dma)

DragonFly Mail Agent (dma)

Lightweight Mail Transfer Agent for local delivery and relay

255
56
Last commit: 1mo ago

A small, C-based Mail Transfer Agent for local submission and outbound relay with TLS/SMTP authentication, aimed at home and small office use.

Alternative to:
Postfix
Postfix
+11
HomeServerHQ

HomeServerHQ

All-in-one home server platform with VPN, email, and relay

57
7
Last commit: 6d ago

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

Alternative to:
Cloudron
Cloudron
+19
Simple NixOS Mailserver

Simple NixOS Mailserver

NixOS module for running a complete email server stack

Simple NixOS Mailserver provides NixOS modules to deploy a full email server with SMTP/IMAP, spam filtering, DKIM/DMARC/SPF, and TLS automation.

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+14
Sendmail Open Source

Sendmail Open Source

Open source subset of Sendmail Sentrion for enterprise email environments.

Open Source Sendmail provides a subset of Proofpoint's Sendmail Sentrion MTA for large-scale mail deployments; current release is 8.16.1 with a PGP-signed tarball and Ope...

Alternative to:
Postfix
Postfix
+12
b1gMail

b1gMail

Web-based email and collaboration suite for running hosted email services

Open-source webmail and groupware offering email, contacts, calendar, cloud drive, tasks, notes and an admin control panel for multi-tenant email services.

Alternative to:
Microsoft Exchange Online
Microsoft Exchange Online
+18