This looks very useful. In the past I've used smtp-sink which is part of Postfix-(stone) and logs to syslog but having a web interface that shows attachments is a big improvement over the smtp-sink method. I could see also using this to replace my SMTP tarpits
which are just Postfix logging to single text files per node. I could envision a few other unorthodox uses for this as well.
With an optional installation step this could run on port 25 as a regular person. Or authbind [1]
setcap cap_net_bind_service=+ep /path/to/mailpit
[1] -
https://stackoverflow.com/questions/413807/is-there-a-way-fo...