Skip to content

Self-Hosted Email Server and Newsletter Tools

This page covers two jobs that are often confused. A newsletter or marketing tool keeps your subscriber lists, builds campaigns and sign-up forms, and hands the messages to a mail server for delivery. An email server is the mail server itself: it receives mail for your domain, stores mailboxes, lets people read them in an app or a browser, and sends mail out. Open-source tools let you run either on your own server, so the lists and mailboxes stay with you and there is no per-subscriber or per-mailbox licence for the self-hosted edition. The cost is the work: a mail server needs correct DNS records, a clean IP address, a hosting provider that allows outgoing mail on port 25, updates and backups. On 23 October 2026 we read each project’s LICENSE file, README and official install docs, and its GitHub repository for stars and the latest push; all nine had code pushed in October 2026.

Quick answer

For newsletters, listmonk (AGPL-3.0) is a fast single program with a PostgreSQL database, and Keila (AGPL-3.0) is a simpler editor with a paid cloud option; Mautic (GPL-3.0) is full marketing automation with campaigns and lead scoring. For a complete email server, mailcow (GPL-3.0) bundles webmail and an admin panel in Docker, Stalwart (AGPL-3.0) is one modern program with a setup wizard, Mox (MIT) is a small all-in-one server, and docker-mailserver (MIT) is a container configured with files. Postal (MIT) sends transactional and bulk mail for apps, and Roundcube (GPL-3.0) is webmail for an existing server.

Checked 23 October 2026

How to choose

Newsletter tool, mail server or both

If you only want to send a newsletter, you do not need your own mail server: listmonk, Keila and Mautic can send through any SMTP service or your existing mailbox provider, and Keila also supports the large sending services directly. If you want mailboxes for your domain, pick a mail server: mailcow, Stalwart, Mox or docker-mailserver. Postal sits in between: it is a delivery platform for apps and websites that send a lot of mail, with tracking and webhooks, not a place to keep personal inboxes. Roundcube adds webmail on top of any IMAP server.

What a mail server needs

Every mail server project on this page asks for the same groundwork: a domain you control, MX, A and PTR (reverse DNS) records, SPF, DKIM and DMARC, and a server whose provider does not block outgoing port 25; Postal’s docs warn that many virtual servers block it and that some IP addresses are already on blocklists. Sizes differ: Postal asks for at least 4 GB of RAM and 2 CPU cores, while Mox’s README says it can start on a machine with 512 MB of RAM. mailcow runs many containers and needs Docker 24 or newer.

Licences and paid options

Postal, docker-mailserver and Mox use the permissive MIT licence. listmonk, Keila and Stalwart use AGPL-3.0, and Mautic, mailcow and Roundcube GPL-3.0; all are free to self-host but add duties if you change the code and offer it to others. Stalwart is open core: its Enterprise features are under a separate licence with a 30-day trial and per-mailbox pricing. Keila sells cloud plans, and the mailcow team’s company Servercow sells support and managed hosting. listmonk, Mautic, Postal, docker-mailserver, Mox and Roundcube do not sell a paid edition.

The projects

listmonk

Free

23,817 GitHub starslast code update 17 October 2026

A self-hosted newsletter and mailing list manager in one program: subscriber lists and segments, campaigns with templates, transactional mail through an API, bounce processing, public archives, user roles and single sign-on. It stores everything in PostgreSQL.

Who it suits
Businesses, publishers and developers sending newsletters to large lists who want speed and low running costs.
How it is used
Run it with Docker Compose or as a single binary, connect an SMTP server for sending, import your subscribers and create a campaign.
Runs on
Web app; self-hosted on Linux with Docker or as a binary; PostgreSQL 12 or newer
Licence
AGPL-3.0
Free or paid
Free; the project sells no paid edition. You pay only for your server and whatever SMTP service you send through. Pricing page

How to set it up

  1. On a server with Docker, download the official compose file:
    curl -LO https://github.com/knadh/listmonk/raw/master/docker-compose.yml
  2. Review the file (passwords, ports), then start the app and its database in the background:
    docker compose up -d
  3. Open http://localhost:9000, create the Super Admin user, then add your SMTP server under Settings.

Steps from the official docs

Good to know

  • listmonk does not deliver mail itself; it needs an SMTP server or sending service, and your sending domain needs SPF, DKIM and DMARC.
  • Version 7 was in beta when we checked (7.0.0-beta.1, 20 October 2026); the default image is the stable release.

RepositoryWebsite

Mautic

Free

10,797 GitHub starslast code update 19 October 2026

Open-source marketing automation: contacts and companies, segments, multi-step campaigns, email and landing page builders, forms, lead points and stages, SMS and web notifications, and reports. Newsletters are one part of a larger marketing toolkit.

Who it suits
Marketing teams and agencies that want campaigns, lead scoring and tracking on their own server.
How it is used
Install the production package on a PHP web server with MySQL or MariaDB, finish the web installer and set up the cron jobs that send campaigns.
Runs on
Web app; PHP web server with MySQL or MariaDB
Licence
GPL-3.0-or-later
Free or paid
Free; the Mautic community project sells no paid edition. Hosting and support are offered by third-party providers. Pricing page

How to set it up

  1. Download the production package of the latest stable release from mautic.org/download.
  2. Upload the zip to your web server, unzip it in the folder that will host Mautic, and create an empty database.
  3. Open the site in a browser: the web installer runs environment checks, connects the database and creates the administrator account and email settings.
  4. Add the cron jobs from the docs so segments update and campaigns send on schedule.

Steps from the official docs

Good to know

  • The docs recommend the production package or Composer for live sites; cloning from GitHub is meant for development.
  • Check the PHP version table on mautic.org before upgrading, because each Mautic major release supports a specific PHP range.

RepositoryWebsite

Keila

Free + paid hosting

2,238 GitHub starslast code update 2 October 2026

A newsletter tool with a visual campaign editor, templates, sign-up forms and contact lists. Small lists can send through your own mailbox over SMTP; larger ones through supported sending services.

Who it suits
Small businesses, associations and creators who want a simple newsletter editor rather than full marketing automation.
How it is used
Run the official Docker image with a PostgreSQL database, sign in, create a project and design your first campaign.
Runs on
Web app; self-hosted with Docker (pentacent/keila) and PostgreSQL
Licence
AGPL-3.0
Free or paid
Self-hosting is free. Keila Cloud has no free plan: on 23 October 2026 plans ran from US$9.50 a month for 2,000 emails to US$299 for 250,000, with unlimited contacts. The team also offers paid help with self-hosting. Pricing page

How to set it up

  1. Pull the official image on a server with Docker:
    docker pull pentacent/keila
  2. Start it with a PostgreSQL database, using the sample ops/docker-compose.yml in the repository as a starting point and filling in SECRET_KEY_BASE, URL_HOST and your SMTP details.
  3. Behind a reverse proxy, make sure WebSockets are forwarded, then open the site and create your account.

Steps from the official docs

Good to know

  • The sample compose file says it is for local testing and not production-ready; use your own secrets and a proper database setup.
  • The Keila logo and the files in the repository’s extra folder are not covered by the AGPL licence.

RepositoryWebsite

Postal

Free

16,884 GitHub starslast code update 20 October 2026

A mail delivery platform for websites and apps: it sends transactional and bulk email through an HTTP API or SMTP, receives incoming mail and forwards it to your app, and adds click and open tracking, IP pools, webhooks and detailed delivery logs.

Who it suits
Developers and companies sending large volumes of mail from their own applications.
How it is used
Install it on a dedicated server with Docker using the installation helper, then create a mail server and credentials for each app.
Runs on
Linux server with Docker and Docker Compose; MariaDB 10.6 or newer; at least 4 GB RAM, 2 CPU cores and 25 GB disk
Licence
MIT
Free or paid
Free; the project sells no paid edition. Pricing page

How to set it up

  1. Install Docker, the Compose plugin, git, curl and jq, then clone the installation helper and put the postal command on your path, as the prerequisites page shows.
  2. Generate the configuration for your web hostname, then edit /opt/postal/config/postal.yml:
    postal bootstrap postal.yourdomain.com
  3. Create the database tables and the first admin user:
    postal initialize && postal make-user
  4. Start Postal and put a web proxy such as Caddy in front of it for HTTPS:
    postal start

Steps from the official docs

Good to know

  • The docs recommend a dedicated server and warn that many hosting providers block outgoing port 25.
  • Postal is not a mailbox server: people cannot keep and read personal inboxes in it.

RepositoryWebsite

mailcow

Free + paid hosting

13,624 GitHub starslast code update 15 October 2026

A complete mail server suite in Docker containers: sending and receiving, mailboxes and aliases for many domains, spam and virus filtering, SOGo webmail with calendars and contacts, and a web admin panel.

Who it suits
Small and medium organisations and hosting providers that want an all-in-one mail server with a web interface.
How it is used
Clone the repository on a Linux server, generate the configuration, start the containers and manage domains and mailboxes in the admin panel.
Runs on
Linux with Docker 24.0 or newer and Docker Compose 2.0 or newer
Licence
GPL-3.0
Free or paid
The software is free. Servercow, the company behind mailcow, sells support packages and managed mailcow hosting. Pricing page

How to set it up

  1. Install git, openssl, curl, gawk, coreutils, grep and jq plus Docker, then clone the repository into /opt:
    cd /opt && git clone https://github.com/mailcow/mailcow-dockerized && cd mailcow-dockerized
  2. Generate the configuration and adjust mailcow.conf if needed:
    ./generate_config.sh
  3. Download the images and start the containers:
    docker compose pull && docker compose up -d
  4. Open https://your-hostname/admin, sign in with the default account from the docs and change its password at once.

Steps from the official docs

Good to know

  • The docs say to use Docker from Docker’s own repository, not the older version in your Linux distribution’s packages.
  • The default admin password is public in the docs; change it immediately after the first login.

RepositoryWebsite

Stalwart

Open-core

15,069 GitHub starslast code update 11 October 2026

A mail and collaboration server written in Rust, in one program: SMTP, IMAP, POP3 and JMAP, built-in spam and phishing filtering, calendars and contacts, and a web admin with a setup wizard. It can store data in SQLite, PostgreSQL, MySQL, RocksDB or S3-compatible storage.

Who it suits
Individuals, companies and hosting providers who want a modern all-in-one mail server without many separate components.
How it is used
Run the install script on Linux or macOS, read the temporary admin password from the service log and finish the five-step setup wizard in the browser.
Runs on
Linux, macOS, Windows and Docker
Licence
AGPL-3.0-only (Enterprise features under a separate licence)
Free or paid
The Community edition is free under AGPL-3.0. The Enterprise edition adds multi-tenancy, branding, archiving and other features, with a 30-day trial and per-mailbox tiered pricing. The README says sponsors giving US$5 a month or more receive an Enterprise licence. Pricing page

How to set it up

  1. Download the installation script:
    curl --proto '=https' --tlsv1.2 -sSf https://get.stalw.art/install.sh -o install.sh
  2. Run it as root; it creates a service account, installs the binary and starts the service:
    sudo sh install.sh
  3. Read the temporary administrator password, which is printed once at first start:
    sudo journalctl -u stalwart -n 200 | grep -A8 'bootstrap mode'
  4. Open the web admin and complete the setup wizard (server identity, storage, accounts, logging, DNS).

Steps from the official docs

Good to know

  • Some features described on the website are Enterprise-only; check the comparison page before relying on one.
  • The temporary password is shown only once; if you miss it, check the service log straight away.

RepositoryWebsite

docker-mailserver

Free

19,617 GitHub starslast code update 18 October 2026

A full mail server in a single container, configured with files and environment variables: SMTP, IMAP, spam and virus filtering, DKIM, DMARC and SPF, without a database or web interface.

Who it suits
Administrators comfortable with the command line who want a lean, scriptable mail server.
How it is used
Download the compose and environment files, set your hostname, start the container and add accounts with the setup command.
Runs on
Linux host with Docker or Podman and Docker Compose
Licence
MIT
Free or paid
Free; the project sells nothing. Pricing page

How to set it up

  1. Download compose.yaml and mailserver.env from the project’s GitHub repository (the usage page gives the exact wget commands).
  2. Replace mail.example.com with your server’s name in compose.yaml and adjust mailserver.env, then start it:
    docker compose up -d
  3. Within two minutes of the first start, add an account, or the container restarts:
    docker exec -ti mailserver setup email add user@example.com
  4. Set up TLS, a postmaster alias and the DKIM, DMARC and SPF records as the docs describe.

Steps from the official docs

Good to know

  • There is no webmail or admin panel; pair it with a webmail app such as Roundcube if users need a browser client.
  • Use docker compose up and down to start and stop it; the docs say start, stop and Ctrl+C can leave it in a broken state.

RepositoryWebsite

Mox

Free

5,905 GitHub starslast code update 9 October 2026

A modern all-in-one mail server written in Go: SMTP and IMAP, SPF, DKIM, DMARC, MTA-STS and DANE, reputation-based and Bayesian spam filtering, automatic TLS with Let’s Encrypt, webmail and a web admin, with no external dependencies.

Who it suits
Individuals and small organisations who want their own mail server on a small machine with little upkeep.
How it is used
Download the binary, run the quickstart with your email address, add the DNS records it prints and start the service.
Runs on
Linux and other Unix systems (a machine with 512 MB RAM is enough to start)
Licence
MIT
Free or paid
Free; the project sells nothing. Pricing page

How to set it up

  1. On a machine dedicated to mail, named like mail.example.com, create a mox user and download the mox binary into its home folder, as the README describes.
  2. Generate the configuration, an account and passwords for your address:
    ./mox quickstart you@example.com
  3. Add the DNS records it prints, then run the commands it gives to start mox and install it as a service.

Steps from the official docs

Good to know

  • The README recommends a machine without another web server, because mox runs its own for automatic TLS.
  • Version numbers are still below 1.0 (0.0.17 in August 2026); read the release notes before each upgrade.

RepositoryWebsite

Roundcube

Free

7,219 GitHub starslast code update 13 October 2026

Browser-based webmail for any IMAP server: HTML and MIME messages, drag and drop, threaded lists, multiple identities, an address book with groups and LDAP, spell checking, PGP encryption support and a plugin API.

Who it suits
Anyone running a mail server who wants users to read mail in a browser.
How it is used
Unpack the release on a PHP web server, create a database, run the installer and point it at your IMAP and SMTP servers.
Runs on
Web app; PHP 8.1 or newer with MySQL, PostgreSQL or SQLite
Licence
GPL-3.0-or-later (with exceptions for skins and plugins)
Free or paid
Free; the project sells nothing. Pricing page

How to set it up

  1. Download the “complete” release from roundcube.net and unpack it on your web server; make the temp and logs folders writable.
  2. Create a database and user for Roundcube, and point the web server’s document root at the public_html folder.
  3. Open http://your-server/installer.php, then follow the installer’s steps.

Steps from the official docs

Good to know

  • Roundcube is only webmail; it needs a separate IMAP and SMTP server such as one of the mail servers above.
  • Security updates are frequent (1.7.5 on 19 October 2026); keep it updated.

RepositoryWebsite

Common questions

What is the best open-source email server to self-host?

For a ready suite with webmail and an admin panel, mailcow. For one modern program with a setup wizard, Stalwart. For a small machine and little upkeep, Mox. For a file-configured container, docker-mailserver. All four are free; whichever you pick, the DNS records and a provider that allows outgoing port 25 matter more than the software.

Do I need my own mail server to send a newsletter?

No. listmonk, Keila and Mautic manage the lists and campaigns, and hand the messages to any SMTP server or sending service you choose. Running your own mail server for bulk mail is harder, because new IP addresses have no sending reputation.

Why are Mail-in-a-Box and Ghost not on this page?

On 23 October 2026 Mail-in-a-Box’s LICENSE file was CC0-1.0, a public-domain dedication that is not an OSI-approved licence, so it does not meet our rule for this section. Ghost can send newsletters, but it is a publishing platform and is already covered on our website builders page.

Why does my self-hosted mail go to spam?

Usually because of missing or wrong DNS records (SPF, DKIM, DMARC and a PTR record that matches your server name) or an IP address with a poor reputation. The docs for Postal, docker-mailserver and Mox all start with these records; check them and your IP against public blocklists before blaming the software.

Can I add webmail to a self-hosted mail server?

Yes. mailcow ships with SOGo webmail and Mox and Stalwart include their own web interfaces. docker-mailserver has none, so many people add Roundcube, which works with any IMAP server and needs PHP 8.1 or newer and a database.

We are not affiliated with these projects. Facts were checked on the date above from each project's repository, licence and pricing page; prices, licences and install steps can change, so confirm on the official site before you rely on them.