This is a third-party deployment note, not official Mailflare documentation. It follows the upstream main commit 772753d (application version 0.5.5, checked on 2026-11-25). The project is licensed under AGPL-3.0. At that time the repository had no GitHub Release and no git tags, so I would not treat latest or the moving 0.5.5 tag as a production pin. Use the immutable image tag ghcr.io/hieunc229/mailflare:sha-772753d, set APP_URL to the public HTTPS origin without a trailing slash, and set TRUST_PROXY=1 when Caddy or Nginx terminates TLS in front of the container.
Start the official image Compose file, then wait for the health check. The image uses a 30-second start period; the log should show migrations and listening on http://0.0.0.0:3000 before the container becomes healthy. Official self-hosting notes are at https://mailflare.co/docs/self-hosting.
The first setup wizard step calls a prepare API that requires a global outbound mail setting. Put either SMTP_URL, or both CF_ACCOUNT_ID and CF_TOKEN, in .env.docker and recreate the container before you open /setup. If those variables are missing, that step returns HTTP 503 with outbound mail shown as not configured, and the page stays on “Check again.” Per-domain Resend or Amazon SES settings configured later in the UI do not satisfy this first check.
Two more practical traps are worth naming. Many cloud providers block inbound TCP 25, and the official Compose files already publish 25:25 even though the sample env file still reads as if you had to uncomment that mapping—if you use a relay path instead of a direct listener, turn that mapping off and disable the inbound SMTP port. SMTP_MAX_SIZE is parsed as a raw byte number; a value like 36 MiB becomes unusable. After setup, domain management is at /domains. A path like /admin/domains returns 404. If you terminate HTTPS on the host, forward /api/realtime as a WebSocket and pass the forwarded protocol and client address headers.
I have not treated inbound port 25, Cloudflare Email Routing, or the optional extras (external database, object storage, web push, the assistant and MCP endpoint) as a live-tested path in this note; those should be read against the upstream docs at the same commit. A full Chinese step-by-step guide (single-container Docker, HTTPS reverse proxy, inbound and outbound mail routes, backups and rollback) is here: https://9012938178391.gumroad.com/l/yrfptc
