For a self hosted email server stack, the strongest matches are mailu/mailu (Mailu is a complete, self-hosted email server suite that), mail-in-a-box/mailinabox (Mail-in-a-Box is a self-contained email server appliance that automates) and billionmail/billionmail (BillionMail is a self-hosted email infrastructure that includes SMTP/IMAP). stalwartlabs/stalwart and mjl-/mox round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Deploy and manage private email infrastructure using these open-source mail server suites and components.
Mailu is a complete email distribution system deployed as a suite of containerized images. It provides a self-hosted email infrastructure that integrates a webmail client interface with a centralized administration dashboard for managing domains, user accounts, and storage quotas. The system focuses on email deliverability and security through a framework that implements identity verification records and digital certificates. This includes the use of identity signatures and encryption to secure mail transport and prevent domain spoofing. The platform includes layered spam and malware filteri
Mailu is a complete, self-hosted email server suite that provides SMTP/IMAP/POP3, a webmail interface, anti-spam/anti-virus filtering, full support for DKIM/SPF/DMARC, Docker deployment, and multiple domain hosting — exactly what you need to run your own email infrastructure.
Mail-in-a-Box is a self-hosted email server appliance that automates the deployment of SMTP, IMAP, and POP3 services on Linux. It functions as a complete suite including a DNS management server, a spam and abuse filter, and a web-based administrative control panel for managing users, aliases, and storage quotas. The project distinguishes itself through a high degree of automation for email security and authenticity. It automatically provisions and maintains SPF, DKIM, DMARC, and DNSSEC records to prevent domain spoofing, while managing the installation and rotation of TLS certificates and enf
Mail-in-a-Box is a self-contained email server appliance that automates SMTP/IMAP/POP3, DNS management, spam filtering, and DKIM/SPF/DMARC setup, fitting your self-hosted email server goal, though it lacks native Docker deployment and does not explicitly provide a webmail interface in its description.
BillionMail is a self-hosted email infrastructure and marketing platform designed to provide full control over mail delivery, domain management, and subscriber communication. It functions as a comprehensive mail server manager that enables users to deploy and maintain private email environments, including integrated webmail interfaces for direct account access. The platform distinguishes itself by combining high-volume bulk email distribution with sophisticated deliverability tools. It supports multi-tenant infrastructure provisioning, allowing administrators to manage multiple domains and ma
BillionMail is a self-hosted email infrastructure that includes SMTP/IMAP via Postfix and Dovecot, a webmail interface, anti-spam with Rspamd, and multi-domain management, directly fitting the need for a self-operated email server.
Stalwart is a self-hosted email and collaboration infrastructure that provides an integrated mail server supporting SMTP, IMAP, POP3, and JMAP protocols. It functions as a comprehensive communication hub, combining email hosting with a collaboration server for shared calendars, contacts, and files. The system distinguishes itself through a distributed architecture that uses peer-to-peer cluster coordination to ensure high availability and fault tolerance. It features a built-in security suite that implements an S/MIME and OpenPGP email gateway alongside automated TLS certificate provisioning
Stalwart is a self-hosted email server supporting SMTP, IMAP, POP3, and JMAP with integrated collaboration features, making it a solid fit for a full email infrastructure; it may lack an explicit webmail interface or mention of anti-spam/anti-virus, but its protocol support and security suite align with the core requirements.
Mox is a self-hosted email server that runs as a single compiled Go binary, handling the full lifecycle of sending and receiving email through SMTP, IMAP4rev2, and a built-in webmail application. It is designed to be operated without external dependencies or runtime plugins, with all mail services — including spam filtering, queue management, and web interfaces for administration and account management — contained in one executable. The server distinguishes itself through automated TLS certificate management via ACME, DNS-based autoconfiguration for email clients, and file-based configuration
Mox is a self-contained self-hosted email server with SMTP, IMAP, webmail, and built-in spam filtering, which directly addresses the core need for running your own email infrastructure, though it uses file-based storage and doesn't explicitly emphasize DKIM/SPF/DMARC or Docker deployment.
Mailcow-dockerized is an open-source email hosting platform that provides a complete, self-hosted infrastructure suite. It bundles message transfer, storage, and security protocols into a modular, containerized environment designed for deployment on private infrastructure. The platform distinguishes itself by integrating a centralized management interface for configuring mail domains and user accounts alongside collaborative tools like shared calendars and contact lists. It includes automated security features such as integrated spam and malware filtering gateways, as well as automated certif
Mailcow-dockerized is a complete self-hosted email server suite that bundles SMTP/IMAP/POP3, webmail, anti-spam and anti-virus filtering, DKIM/SPF/DMARC support, Docker-based deployment, multi-domain hosting, and a database backend—covering every feature needed to fully operate your own email infrastructure.
Mail hosting made simple
Modoboa is a complete self-hosted email server management platform integrating Postfix, Dovecot, and Rspamd with a web interface, covering all the key features like SMTP/IMAP, anti-spam, and multi-domain hosting — exactly what this search asks for.
Maddy is a modular mail server that assembles a complete email system by connecting small, single-purpose modules through a declarative configuration file. Rather than a monolithic stack, it lets operators compose message processing, storage, authentication, and security enforcement from interchangeable building blocks, with each module handling a specific function like receiving SMTP connections, verifying credentials, or applying policy checks. The server distinguishes itself through its flexible authentication and security architecture. It delegates user verification to external systems in
Maddy is a modular, self-hosted mail server that supports SMTP and IMAP with DKIM/SPF/DMARC policies and can be deployed via Docker with a SQL backend, fitting your need for a self-hosted email server; however, it lacks a built-in webmail interface and explicit anti-spam/anti-virus features, which are among your listed requirements.
This project provides a full-stack, containerized mail server platform designed for self-hosting. It functions as a complete mail transfer agent that bundles essential services—including SMTP, IMAP, and POP3—into a unified environment. By leveraging container orchestration, it enables the deployment of private email infrastructure that handles message transport, delivery, and user management within a single, manageable service. The platform distinguishes itself through deep integration with container runtimes and robust configuration flexibility. It supports granular customization via configu
docker-mailserver/docker-mailserver is a containerized mail server platform that handles SMTP, IMAP, POP3, anti-spam/antivirus (Rspamd, Fail2ban), and Docker deployment, but it focuses on the mail transport layer and does not include a built-in webmail interface, making it a solid foundation for self-hosting but not a complete all-in-one solution.
Full-featured, open source mail server solution for mainstream Linux/BSD distributions.
iRedMail is a full self-hosted mail server solution covering SMTP/IMAP/POP3, webmail, anti-spam/anti-virus, DKIM/SPF/DMARC, and multi-domain hosting, but it does not include Docker deployment out of the box.
This project is an email alias management platform and masking proxy designed to protect user privacy. It functions as a gateway that creates unique email addresses to hide a user's primary mailbox, forwarding incoming messages while routing outbound replies through a reverse-proxy to maintain sender anonymity. The system distinguishes itself through advanced domain and privacy controls, including the ability to link personal domains via DNS for branded aliases and catch-all routing. It further secures communications via a PGP encryption gateway that encrypts forwarded email content using pub
SimpleLogin is an email alias management and privacy gateway, not a full self-hosted mail server—it lacks SMTP/IMAP/POP3 serving, a built-in webmail client, and integrated anti-spam/anti-virus, so it does not provide the core mail infrastructure you need.
Haraka is a scalable SMTP server (MTA) with plugin support for DKIM, SPF, and anti-spam, but it lacks built-in IMAP/POP3 and webmail, so you would need to combine it with separate components like Dovecot and Roundcube for a complete self-hosted email server.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| mailu/mailu | 7.3K | Python | NOASSERTION | |
| mail-in-a-box/mailinabox | 15.3K | Python | CC0-1.0 | |
| billionmail/billionmail | 15.2K | Go | AGPL-3.0 | |
| stalwartlabs/stalwart | 13.3K | Rust | — | |
| mjl-/mox | 5.7K | Go | MIT | |
| mailcow/mailcow-dockerized | 13K | JavaScript | GPL-3.0 | |
| modoboa/modoboa | 3.5K | Python | ISC | |
| foxcpp/maddy | 5.9K | Go | gpl-3.0 | |
| docker-mailserver/docker-mailserver | 18.4K | Shell | MIT | |
| iredmail/iredmail | 1.8K | Shell | GPL-3.0 |