MailHog was the go-to fake SMTP server for years. It's simple, free, and gets the job done locally. But if you've tried to use it in a modern CI pipeline, you've probably hit the same wall: it requires a running Docker container, adds startup overhead, and is effectively unmaintained.
If you're testing email flows in 2025 — password resets, magic links, verification codes — here's what your options actually look like.
Why people are moving away from MailHog
MailHog's last commit was years ago. It works, but:
Requires Docker in your CI environment
Adds a services: block to every GitHub Actions workflow
Needs health checks and port mappings before tests can run
Can cause flaky tests when the container is slow to start
No SDK — you poll a custom HTTP API and parse the response yourself
None of these are dealbreakers locally. In CI, they add up.
The alternatives
1. Mailpit
Best self-hosted replacement for MailHog
Mailpit is the modern, m
Discussion
Begin the discussion
Begin something meaningful by sharing your ideas.