Docker Mailhog, which works on a Raspberry Pi. Originally this was a raspberry pi only image, but now docker has more stable support for multi-arch you can build the same alpine for x86 as various arm flavours. They even support windows. In-theory even windows users can create an issue if you cannot run this. In practice, I don't have a license to a windows with docker runtime, so it may take some time and cause frustration.
You need Docker runtime installed, and access to a user that can download, build and run docker images.
sudo usermod -aG docker $USERNAME, followed by logging in and out, or rebooting your device. It basically says "Hey add my user to the group that has permissions to run docker please."docker run --restart always --name mailhog -p 1025:1025 -p 8025:8025 -d cd2team/mailhog:latest
The additional {timestamp} version of tags make it easy to maintain history when re-tagging a latest and alpine. If you encounter issues with a latest tag, please try the timestamp from your last successful build, which will share a hash with your last working latest.
docker ps -a show mailhog Status as "Up {n} Hours|Mins|Secs|Days")GPL-3.0 and decided you wish to contribute under that license?Mailhog is great. Raspberry Pi's are cheap, convenient, and when paired with device-mode, it's a really easy setup for convenient, isolated functionality.
I often like to combine separate pieces of technology. I made this dockerfile so I can test email on-the-go without needing internet connection.
If you pair this tool with a pi-hole you could spoof non-ssl mail internally ensuring testing or staging environments remain trapped inside.
This could also be useful for testing IoT email notifications if the edges are expected to send the emails, although you'd need to be able to say "use mailhog MTA" or "use real MTA" if you wanted to do that.
Content type
Image
Digest
sha256:cdbaa67df…
Size
11.2 MB
Last updated
11 months ago
docker pull cd2team/mailhog