Self-host Mailu
A simple, full-stack mail server as a set of Docker images — SMTP/IMAP, webmail, antispam, and an admin panel generated by a setup wizard. A lighter, MIT-licensed self-hosted alternative to Google Workspace for personal and small-team email. As with any self-hosted mail, expect to manage deliverability (SPF, DKIM, DMARC, and reverse DNS) so your mail reaches inboxes.
Key facts
Pick Mailu when you want a full mail stack with a web admin and optional webmail (Roundcube or SnappyMail) on far less hardware than Mailcow: the compose requirements are 1 GB of RAM plus 1 GB of swap without antivirus, 3 GB with ClamAV enabled. It is MIT-licensed and assembled by a web wizard at setup.mailu.io that writes your `docker-compose.yml` and `mailu.env` — which is also its quirk: the documented install path is the wizard, and every upgrade goes back through it.
Follow the Mailu deploy guide →What you need
- Any VPS with at least 1024 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- About the better part of a day
Paid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# Mailu has no one-line install. First complete the wizard at
# https://setup.mailu.io
# and copy the docker-compose.yml + mailu.env it generates into this
# directory — the commands below fail without them.
docker compose up -d
docker compose exec admin flask mailu admin me example.net 'CHANGE_ME'What you take on
Mailu's requirements page is short and strict; the things that break installs are all on it:
An alternative to
Head-to-head
The full groupware suite vs. the lighter wizard-built mail stack.
A web-managed suite vs. a config-file container.
A single Rust binary vs. a wizard-built Docker Compose suite.