Mailpit for local mail
Published on February 6th, 2026
I recently had to install a new laptop as a development machine, and I just sort of blindly installed all software I was used to, including Mailhog. It turns out that Mailhog isn't supported anymore though, which I only realized as I saw Homebrew's warning about it being deprecated because of upstream deprecation.
After a quick search online I landed on Mailpit, a super lightweight single-binary application for local email. I installed it via brew with brew install mailpit, started the service with brew services start mailpit, and I was off the races.
It works similar to Mailhog; configure your application to use the SMTP server at localhost:1025 to send email, and you can see the outgoing mails on Mailpit's web interface on http://localhost:8025.
If you're using Laravel, this is all the config you need in .env:
1MAIL_MAILER=smtp
2MAIL_HOST=localhost
3MAIL_PORT=1025
The other MAIL_* environment variables are not relevant.