Disclosure first: I run Envbay , a small hosted service for Envoryx. The first half of this works with plain Docker and nothing of mine.
Everybody knows one of these stories. A staging copy of a shop, a real customer table in the database, a cron job nobody switched off, and on Sunday a few dozen people get "your order has shipped" for an order that doesn't exist.
The fix is boring: give every dev and staging setup a catch-all inbox before it gets anything else. I use Mailpit for that. It speaks SMTP on one port, shows a web inbox on another, and delivers nothing to anyone.
Everything below I ran myself before writing it down, with Mailpit 1.33, Laravel 13, Symfony 8.1 and WordPress 7.1.
The plain version
docker run -d --name mailpit -p 8025:8025 -p 1025:1025 axllent/mailpit
Enter fullscreen mode
Exit fullscreen mode
SMTP is on 1025, the inbox is on http://localhost:8025 . No user, no password, no TLS.…