MailHog Is Dead. Here's What to Use Instead.
If you've set up a Laravel, Rails, or Django project in the last few years, there's a good chance you've used MailHog. It was the go-to recommendation for catching emails during local development. Simple, free, and effective.
But MailHog hasn't been updated since 2020. The GitHub repository has over 200 open issues. Pull requests sit unmerged. The maintainer has moved on.
This isn't a criticism. Open-source maintainers don't owe anyone ongoing support. But if your team still depends on MailHog, it's worth understanding what this means and what your options are.
What happened to MailHog?
MailHog was created by Ian Kent as a Go-based alternative to older email testing tools. It gained popularity quickly because it solved a real problem elegantly: run a single binary, point your SMTP config at localhost:1025, and see captured emails in a web UI at localhost:8025.
The last meaningful release was v1.0.1. After 2020, commits stopped. The project isn't archived, but it's effectively abandoned. No one is merging fixes, updating dependencies, or responding to security concerns.
This happens in open source. Projects lose their maintainer and slowly become frozen in time.
Why it matters
For a local dev tool, "unmaintained" might seem harmless. But there are real consequences:
Known bugs won't be fixed. MailHog has documented issues with large attachments causing memory leaks, certain MIME types crashing the parser, and the web UI not rendering correctly on mobile devices. These bugs are permanent.
Security vulnerabilities accumulate. MailHog's Go dependencies haven't been updated in years. If you're exposing MailHog's web UI on a network (even a local one), outdated dependencies are a risk.
No TLS support. MailHog only accepts unencrypted SMTP connections. On localhost that's fine. On a shared development server or CI environment, it means test emails travel in plaintext.
The ecosystem moved on. Laravel Sail switched from MailHog to Mailpit. DDEV made the same switch. Framework documentation increasingly points elsewhere.
Your options in 2026
Mailpit β the direct replacement
Mailpit is the spiritual successor to MailHog. It's a single Go binary with the same basic workflow but significantly more features:
- Modern Vue.js UI with full-text search
- HTML email client compatibility checking
- SpamAssassin integration for spam scoring
- Link validation
- WebSocket real-time updates
- Active development with regular releases
If you're using MailHog locally and want a drop-in replacement, Mailpit is the obvious choice. Same concept, better execution, actively maintained.
Sendpit β hosted for teams
If your pain points are less about the tool being outdated and more about the local-only model not scaling, a hosted SMTP sandbox might be a better fit.
Sendpit runs in the cloud. Your local dev, CI pipeline, and staging server all point at the same SMTP endpoint. Emails persist, your team sees the same inbox, and there's no infrastructure to manage.
The tradeoff is that you need an internet connection and, beyond the free tier, it costs money. But you get team accounts, per-mailbox access controls, and encrypted storage without running anything yourself.
Other alternatives
- Mailtrap β a full email testing and sending platform. More comprehensive than Sendpit but also more complex and expensive if you only need SMTP capture.
- MailCatcher β a Ruby-based alternative. Still works but has its own maintenance concerns and requires Ruby installed.
- Ethereal Email β Nodemailer's free testing service. Good for Node.js projects, limited for everything else.
How to migrate from MailHog
The migration is straightforward regardless of which tool you choose:
-
Update your SMTP config. Change
MAIL_HOSTandMAIL_PORTin your.env(or equivalent). For Mailpit, it's usuallylocalhost:1025(same ports). For Sendpit, use the credentials from your dashboard. -
Remove MailHog. If it's in your
docker-compose.yml, remove the service definition. If you installed the binary, delete it. -
Test. Send a test email from your app and verify it appears in the new tool.
That's it. SMTP is a standard protocol. Any tool that accepts SMTP connections will catch your emails the same way.
The bottom line
MailHog was a great tool for its time. It solved a real problem and served the developer community well. But relying on unmaintained software introduces risks that compound over time.
If you're starting a new project, don't reach for MailHog. If you're maintaining an existing project that uses it, consider migrating sooner rather than later. The longer you wait, the more likely you'll hit one of those unfixed bugs at the worst possible time.
Mailpit is the natural replacement for local development. Sendpit fills the gap when your team needs shared visibility. Either way, you'll spend about five minutes migrating and wonder why you didn't do it sooner.