Access http://localhost:8025
.
# in container
~ $ which MailHog
/usr/local/bin/MailHog
~ $ which sendmail
/usr/sbin/sendmail
$ sendmail -S localhost:1025 <<EOF
From: App <app@mailhog.local>
To: Test <test@mailhog.local>
Subject: Test message
Some content!
EOF
$ python ex_mailhog.py