Mailu

Open source

Mailu is a free mail server packaged as Docker images, bundling SMTP, IMAP, webmail, spam filtering and an admin interface for self-hosters.

mailu.io
Mailu homepage screenshot
GitHub stars
7.6k
Last 30 days
+64(+1%)
Last commit
3 days ago
Repository age
10 years
Version
2024.06.68
Licence
Custom
Self-hosted
Yes

About Mailu

Mailu is a full-featured mail server delivered as a set of Docker images. The project aims to give people an easily set up and maintained mail server made entirely of free software, without proprietary components or unrelated groupware features and without trackers.

It covers the standard email server functions, IMAP and SMTP with client auto-configuration profiles, along with aliases, domain aliases, custom routing and full-text search of attachments. Users get webmail, auto-reply, auto-forward and managesieve, while admins get global admin roles, per-domain delegation, announcements and quotas. Security features include enforced TLS, DANE, MTA-STS, Let's Encrypt certificates, outgoing DKIM and an antivirus scanner, and antispam features include greylisting, auto-learning, DMARC, SPF and anti-spoofing checks.

Mailu is written in Python and deployed with Docker or Docker Compose. The project's own configuration files, Dockerfiles and code are MIT-licensed, and all bundled components are free software compatible with it. A demo server and website documentation are provided.

Key features

  • IMAP and SMTP mail server in Docker
  • Webmail and admin interface
  • Aliases, domain aliases and custom routing
  • Enforced TLS, DKIM, DANE and MTA-STS
  • Spam filtering with greylisting and SPF
  • Per-domain admin delegation and quotas

Good fit for

  • Hosting email for your own domain
  • Running a mail server for a small organization
Tags
mail-server
email
docker
smtp
imap
webmail
self-hosted
dkim

Mailu: questions and answers

What is Mailu used for?
Mailu is a free mail server packaged as Docker images, bundling SMTP, IMAP, webmail, spam filtering and an admin interface for self-hosters. It is a good fit for hosting email for your own domain and running a mail server for a small organization.
Is Mailu open source?
Yes. Mailu is open source under a custom licence. Its source code is on GitHub at Mailu/Mailu and is written mainly in Python.
Is Mailu free?
Yes. Mailu is open source, so the software itself is free to use under the terms of its own licence.
Can I self-host Mailu?
Yes. Mailu can be self-hosted on your own server or infrastructure; there is no official hosted version.
What is Mailu an alternative to?
Mailu is an open-source alternative to Gmail, Microsoft Outlook, Fastmail and Zoho Mail. Other open-source alternatives to Gmail include Mail-in-a-Box, Stalwart and Mailcow.
Is Mailu actively maintained?
Yes. The most recent commit to Mailu was on 10 November 2026, and the latest release is 2024.06.68, published on 8 November 2026. The project has 7.6k stars on GitHub, with 64 added in the last 30 days.

Open-source alternatives to Mailu

See all

SaaS alternatives to Mailu

See all