Yep, mailhpg works, but is not anymore maintained.
We have been successfully using https://github.com/axllent/mailpit
We have been successfully using https://github.com/axllent/mailpit
And not sure about this, but at least for docker, the included certificates can become outdated if not frequently rebuilt, and since Mailhog is software used when testing, being able to spin up a ready-to-use sandboxed instance is very useful.