feat: add Mailu mail server template#1033
Open
Siumauricio wants to merge 1 commit into
Open
Conversation
Mailu 2024.06 mail server: front (nginx), admin, imap (dovecot), smtp (postfix), antispam (rspamd), Roundcube webmail and redis. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Mailu 2024.06 mail server template (
ghcr.io/mailu/*:2024.06, currently 2024.06.54).Stack
Minimal Mailu deployment:
front(nginx + mail proxy),admin,imap(Dovecot),smtp(Postfix),antispam(Rspamd),webmail(Roundcube) andredis. ClamAV/webdav/fetchmail are left out to keep the footprint reasonable (ClamAV alone needs >1 GB RAM); they can be added following the Mailu docs.Design decisions
*_ADDRESS=front/admin/imap/...), no fixed subnets and no pinned IPs, so it works with the dynamic networks of both normal and isolated deployments. The upstreamresolver(unbound, needs a static IP) is replaced by public DNSSEC-validating upstreams (dns: 1.1.1.1, 8.8.8.8) — required because the admin container refuses to boot without DNSSEC validation and Postfix uses DANE.SUBNET=172.16.0.0/12(user-editable env): the CIDR Mailu trusts for internal relay/XCLIENT/proxying. It covers Docker's default address pools; documented ininstructions.mdfor hosts with custom pools.front, but Dovecot only starts once TLS certs exist. Behind Traefik this deadlocks — unhealthy → Traefik drops the router → the ACME challenge can never be answered → certs never arrive. The template checks only nginx (127.0.0.1:10204/health), which breaks the cycle: web UI is routable immediately and Mailu's internal certbot can complete the HTTP-01 challenge through Traefik.TLS_FLAVOR=mail-letsencrypt: Traefik terminates HTTPS for the web UI; Mailu obtains its own Let's Encrypt certificate for the mail protocols via HTTP-01 through Traefik.instructions.md.admin@<domain>auto-created (INITIAL_ADMIN_MODE=ifmissing) with a generated password.Evidence (deployed on the demo instance)
fronthealthy; deploydone./→ 302/sso/login?url=/webmail/(200 «Mailu-Admin | Mailu»),/admin→ SSO login 200.POST /sso/login→ 302 →/admin/user/settings200 showing the logged-inadmin@<domain>and the Mail domains UI.220 <domain> ESMTP ready.sslip.iodemo domain, works on a real domain with HTTPS enabled).Closes #19
🤖 Generated with Claude Code