Open-source mail servers
Compare the roles of open-source MTAs, mailbox suites, and delivery platforms before choosing a server to operate.
Reviewed
Choose open-source mail software by the job it performs, not by whether it appears in a list of “mail servers.” An MTA, an all-in-one mailbox server, and an application delivery platform solve different problems.
Compare the server families
| Family | Examples | Best fit | Important boundary |
|---|---|---|---|
| Mail transfer agents | Postfix, Exim, OpenSMTPD, chasquid | SMTP transport, routing, queues, and delivery policies | Not a complete mailbox/client experience on their own |
| Integrated servers | Stalwart, mox, maddy | A cohesive sending and mailbox stack | Check each project’s supported protocols and deployment requirements |
| Packaged mail stacks | mailcow, Mailu, docker-mailserver, Mail-in-a-Box, iRedMail | Operating a conventional mail system with components assembled for you | You still own updates, backups, storage, and deliverability |
| Delivery and programmable platforms | Postal, Haraka, WildDuck, ZoneMTA, MailKite Server | Application delivery, programmable routing, or API-oriented mail infrastructure | These projects are not interchangeable: verify storage, inbound, API, and SMTP capabilities individually |
| Administration layer | Modoboa | Managing a mail deployment and its users | Understand the mail components behind the management interface |
These examples introduce roles, not a ranking. For the complete project-by-project inventory, see our open-source server comparison. Version, licensing, and deployment requirements should always be checked against the current official project documentation.
Choose by operational responsibility
Start with Postfix or Exim when your team needs control over SMTP routing and can assemble the surrounding components. Postfix describes itself as a mail transfer agent; Exim emphasizes flexible routing and incoming-mail checks. Neither choice removes the need to plan mailbox access if you want user inboxes.
Evaluate an integrated server or packaged stack when the goal is complete mailboxes. Verify the clients/protocols you need, account administration, authentication, spam filtering, backup restoration, and upgrade procedure before moving an existing domain.
Evaluate Postal when the goal is operating an application delivery platform rather than employee mailboxes. The Postal guide index collects installation, sending, incoming routing, and migration walkthroughs.
Check before installing
- Confirm your host permits the required SMTP traffic and supports reverse DNS where direct outbound delivery needs it.
- Decide who owns patching, abuse response, queue monitoring, and off-host backups.
- Establish SPF, DKIM, and DMARC for your sending domain; authentication is necessary, not a guarantee of inbox placement.
- Test a separate domain or subdomain before changing production MX records.
- Prove that retries, bounces, and recovery work—not just that a web dashboard loads.
Supporting software such as Dovecot, Rspamd, and Roundcube provides mailbox access, filtering, or webmail. Newsletter applications such as listmonk and Keila are another layer again. Do not treat those components as substitutes for an entire transport and mailbox stack.
Choose a project’s walkthroughs
The 18 primary projects from the comparison have their own introductory indexes and article menus below. Start with the installation or deployment task, then follow the project’s configuration and operational guides. Postfix, Exim, and OpenSMTPD now also have dedicated package-installation walkthroughs. Each setup guide cites official installation instructions or project documentation; use the source matching your installed release. There is no assumed common HTTP send API or incoming webhook across unlike servers. These are documentation recipes, not a claim that every stack has been installed or load-tested by MailKite.
chasquid
A Go SMTP server for individuals and small groups. Its documented setup pairs SMTP transport with Dovecot authentication/mailbox services and explicit TLS/DNS configuration.
Set up chasquid SMTP with explicit DNS and TLS
Follow the small-server setup path, choose the accepted domains, and verify host identity and certificate access before moving MX.
Connect chasquid to Dovecot authentication and mailboxes
Use one account source while verifying SMTP authentication, local delivery, and IMAP access as separate operations.
Operate chasquid aliases and filtering hooks safely
Scope alias expansion and message-processing hooks, test failures, and avoid turning SMTP acceptance into unreliable application execution.
docker-mailserver
A containerized conventional mail stack configured through files and its setup tooling. Persist mail/configuration outside the image and match documentation to the pinned release.
Deploy docker-mailserver with persistent configuration and mail
Pin a supported image, use version-matched Compose settings, and separate durable data from a disposable container.
Provision docker-mailserver accounts and domain authentication
Use the release's setup tooling for accounts, aliases, and signing records while keeping mailbox access separate from administrator credentials.
Back up and upgrade docker-mailserver without losing mail
Preserve configuration, signing material, mailbox data, and state and rehearse an image upgrade with a compatible recovery copy.
Exim
An SMTP MTA with programmable ACLs, routers, and transports. Plan message policy, delivery targets, and queue operations separately from mailbox access.
Install Exim4 on an Ubuntu test server
Install Exim4, choose local-only operation, and understand Ubuntu's generated configuration before opening SMTP to a domain.
Prepare Exim host identity and SMTP acceptance policy
Choose the packaged configuration model and validate local domains, relay permissions, and receiving ACLs before exposing SMTP.
Trace Exim routing and delivery transports
Use address routing tests to understand which router and transport handle a recipient before changing live delivery rules.
Diagnose Exim queued and frozen messages
Inspect queue summaries, message logs, and retry causes without deleting mail or forcing every message through a broken route.
Haraka
A Node.js SMTP server with a plugin-driven message path and an outbound queue. Recipient policy, authentication, durable handoff, and any mailbox/API layer must be designed explicitly.
Install Haraka with explicit recipient and relay policy
Create an isolated Haraka configuration, review the plugin chain, and reject unauthorized recipients before enabling public SMTP.
Design a durable Haraka application handoff
Choose the queue boundary, preserve envelope recipients and raw mail, and avoid acknowledging SMTP before required work is safely stored.
Operate Haraka authenticated submission and outbound queues
Configure submission authentication and signing deliberately and diagnose queued delivery without enabling public relay or duplicating sends.
iRedMail
A host-installed mail stack with selectable account backends. These guides cover the open-source deployment path, keeping Enterprise and paid administration features distinct.
Install the iRedMail open-source stack on a clean host
Choose a currently supported operating system and account backend and distinguish open-source installation from Enterprise setup.
Manage iRedMail mailboxes and application SMTP access
Use backend- and edition-appropriate account management, verify full-address login, and keep sender authorization separate from authentication.
Back up iRedMail and follow its ordered upgrade path
Capture mailbox files, the selected account backend, and service configuration and test a compatible restore before upgrading components.
maddy
A composable SMTP and mailbox server built from configured modules. Its own project labels IMAP storage beta; evaluate that boundary before migrating important mailboxes.
Install maddy and configure domain identity and TLS
Prepare maddy's unprivileged service, local-domain configuration, and readable certificate paths before enabling public mail.
Connect maddy authentication to mailbox storage
Keep credential creation, storage-account creation, and delivery routing distinct when configuring maddy's module pipeline.
Route and forward mail through maddy's module pipeline
Separate local delivery, queued remote delivery, and forwarding while keeping recipient authorization and loop prevention explicit.
Mail-in-a-Box
An opinionated mail appliance for a supported clean Ubuntu host. DNS, certificates, mailboxes, and backups follow the appliance's layout rather than an arbitrary preexisting server configuration.
Prepare a supported Mail-in-a-Box appliance host
Choose the supported clean operating system and DNS layout before running an installer that manages the complete mail appliance.
Configure Mail-in-a-Box users, aliases, and client access
Use appliance-managed accounts and DNS checks and distinguish mailbox identity from administrative access and alias routing.
Maintain Mail-in-a-Box backups and supported upgrades
Verify encrypted off-host recovery, preserve backup credentials, and avoid unsupported operating-system or component upgrades.
mailcow
A Docker Compose mail/groupware suite with managed Postfix, Dovecot, filtering, and administration components. Operate the assembled stack through its supported configuration and recovery paths.
Install mailcow as an integrated Compose mail suite
Check host/DNS requirements, generate the supported configuration, and secure the administration surface before importing mailboxes.
Configure mailcow domains, mailboxes, and application submission
Use suite-managed domain/account settings and verify aliases, sender permissions, signing, and client access independently.
Back up and restore mailcow with its supported helper
Capture the right suite components, retain configuration and encryption material, and test restoration before relying on scheduled backups.
MailKite Server
MailKite's pre-1.0 open-source protocol edges and reference local backend. Run the local stack deliberately, verify signed incoming events, and use only its documented SDK-compatible API subset. One MX edge can route each recipient domain to a different backend.
Deploy MailKite Server with the reference local backend
Choose the pre-1.0 local deployment deliberately, persist SQLite/blobs, and distinguish backend/console startup from protocol-edge readiness.
Receive signed incoming mail from MailKite Server
Connect the MX edge to the intended backend and verify local webhook deliveries with the MailKite SDK before processing application work.
Use the MailKite SDK with the local server's supported API
Point the client at your own backend, use a local account key, and distinguish the documented compatibility subset from hosted-only features.
Route recipient domains to multiple backends on one MX
Run one MailKite Server MX for several backends: per-domain ownership, priority conflicts, signed ingest fan-out, and the checks before production.
Mailu
A Docker-based mail stack with administration, mailbox access, and optional webmail. Generate configuration for the deployed release and verify TLS, volumes, and account routing.
Generate a release-matched Mailu Compose deployment
Choose stable documentation, generate the Compose/environment pair, and validate persistent paths, bind addresses, and TLS before startup.
Provision Mailu mailboxes, aliases, and delegated administration
Use Mailu's admin model to define domains and recipient routing while keeping mailbox credentials separate from administrative authority.
Back up Mailu and upgrade with matching configuration
Inventory the selected Mailu services and persistent stores, test a consistent restore, and avoid mixing release-specific environment schemas.
Modoboa
A mail hosting and administration platform around components such as Postfix and Dovecot. Its installer can assemble a stack; its management API is not automatically a transactional send API.
Deploy Modoboa with an explicit mail-stack topology
Choose automatic installation or integration with existing services and keep administration distinct from SMTP and mailbox delivery.
Provision Modoboa domains and mailboxes through supported administration
Use administrator roles and the deployed REST schema to automate hosting resources without bypassing the mail stack's account model.
Back up Modoboa and its underlying mail services
Recover panel metadata, extension state, mailbox storage, and generated service configuration together before upgrading the platform.
mox
An integrated Go mail server with generated quickstart configuration, mailbox access, DNS checks, and operational commands. Keep its configuration and persistent mail state recoverable.
Generate a mox deployment with quickstart
Use mox's generated host/domain configuration and DNS instructions without treating a quickstart result as completed Internet delivery.
Manage mox accounts, addresses, and client access
Distinguish account identity from additional addresses and verify mailbox retrieval and submission using the deployed configuration.
Back up mox and verify a recoverable mailbox copy
Use the supported backup and data-verification tools and rehearse restoration without replaying production delivery.
OpenSMTPD
The OpenBSD project's SMTP daemon, also available in portable builds. Match rules choose delivery actions; mailbox access and application processing are separate components.
Install OpenSMTPD on a Debian Linux test server
Install Debian's OpenSMTPD package, create a local-only Maildir configuration, and validate it before configuring public SMTP.
Configure OpenSMTPD match rules and delivery actions
Choose a supported portable/OpenBSD build, define destination tables, and validate ordered match rules before accepting SMTP.
Secure OpenSMTPD submission and upstream relay access
Separate authenticated application listeners from Internet MX traffic and protect smarthost credentials and TLS configuration.
Inspect OpenSMTPD queue envelopes and delivery failures
Read queued envelope state, correlate logs, and choose a targeted recovery action without discarding outstanding messages.
Postal
An application delivery platform with SMTP/API submission, message activity, and inbound routing. It is not a general-purpose IMAP mailbox server.
How to install Postal v3 on a VPS
Install Postal v3 on a dedicated server, configure MariaDB and DNS, start its containers, and verify the web interface before sending.
Send email with the Postal API from Node.js
Call Postal's HTTP API from Node.js, handle its JSON result safely, and compare the same application send with MailKite's SDK.
Receive inbound email with Postal HTTP routes
Route inbound Postal messages to an HTTPS endpoint, acknowledge requests safely, and handle retries, parsed payloads, and attachments.
Migrate transactional email from SendGrid to Postal
Plan a SendGrid-to-Postal migration by mapping API calls, domains, templates, events, DNS, and rollback before switching application traffic.
Replace Postal inbound routes with MailKite
Move application-facing inbound email from a self-hosted Postal route to MailKite webhooks, with a safe DNS cutover and attachment handling.
Use MailKite alongside Postal
Keep Postal for existing mail workflows while routing selected domains or subdomains through MailKite inbound webhooks.
Connect Postal inbound routes to a MailKite app
Adapt Postal's incoming HTTP payload for an app that also uses MailKite, without confusing provider payloads or webhook signatures.
Receive with MailKite and reply through Postal
Receive parsed inbound messages with MailKite, then send replies through your Postal API without leaking credentials or duplicating sends.
Postfix
An SMTP transport and queue manager. Assemble authentication, mailbox storage, and client access explicitly; Postfix alone is not an IMAP service or a parsed-email webhook product.
Install Postfix on an Ubuntu test server
Install the distribution package, choose a local-only starting configuration, and inspect Postfix before configuring an Internet-facing mail domain.
Configure a Postfix domain without opening relay access
Set the SMTP host identity, local destinations, and relay boundary before accepting mail for a test domain.
Separate Postfix submission authentication from Internet SMTP
Choose a SASL backend, require TLS for credentials, and distinguish application submission from upstream smarthost authentication.
Inspect Postfix deferred delivery before retrying mail
Read queue state and failure reasons, correlate the correct instance, and avoid destructive queue clearing or repeated global flushes.
Stalwart
An integrated Rust mail and collaboration server. Choose storage and directory backends, configure verified domains and client protocols, and plan recovery for the selected topology.
Install Stalwart with deliberate storage and directory choices
Select a supported deployment, separate storage roles from account directories, and secure bootstrap administration.
Configure Stalwart domains, accounts, and mail clients
Separate DNS readiness, mailbox authentication, and SMTP submission while enabling only the protocols the deployment needs.
Plan Stalwart backups and version upgrades
Inventory storage, directory state, keys, and configuration and prove recovery before updating an integrated mail deployment.
WildDuck
A Node.js IMAP/POP3 and HTTP API server backed by MongoDB and Redis. A complete SMTP suite adds inbound Haraka and outbound ZoneMTA; the standalone image is not that entire suite.
Choose a WildDuck standalone or full mail-suite deployment
Distinguish the IMAP/POP3/API server from its SMTP integrations and persist MongoDB, Redis, and attachment storage deliberately.
Secure WildDuck management API and mailbox access
Provision through the documented REST interface and distinguish administrative tokens, user credentials, and application-specific passwords.
Plan WildDuck mail-suite backup and recovery
Recover authoritative database and attachment data with compatible SMTP integration state instead of backing up only stateless application containers.
ZoneMTA
An outbound MTA with persistent queues, sending zones, and programmable routing. It does not provide an incoming mailbox; keep submission and internal services restricted.
Deploy ZoneMTA with restricted submission and persistent queues
Prepare MongoDB/Redis dependencies and keep SMTP, HTTP injection, and internal data services from becoming public unauthenticated endpoints.
Configure ZoneMTA sending zones and domain signing
Route authorized application traffic to the intended delivery pool and constrain sender-controlled routing choices.
Monitor ZoneMTA queues and recover deferred delivery
Correlate queued bodies and recipient delivery work, inspect deferred causes, and avoid duplicate submissions or destructive database cleanup.