Sign inSign up

caligari/mailhog-tls

By caligari

•Updated over 3 years ago

Mailhog with TLS (SSMTP) and basic authentication

Image
0

1.3K

caligari/mailhog-tls repository overview

⁠MailHog TLS

MailHog⁠ is a Web and API based SMTP testing.

This container image contains Alpine base with the MailHog binary and stunnel package to provide SMTPS (secure SMTP) on port 465 and the web interface on port 8025 with basic authentication (optional).

⁠Usage

docker run -d -e AUTH_USER=developer -e AUTH_PASS=d3v3l --name mailhog --rm caligari/mailhog-tls:latest

⁠Test

Discover the IP address of your docker container. For example:

$ docker network inspect bridge | grep IPv4Address
                "IPv4Address": "172.17.0.2/16",

Enter in the web interface (use the username and password provided on above command): http://172.17.0.2:8025⁠

Create this text file on /tmp/testmail.txt

From: "User Name" <[email protected]>
To: "John Smith" <[email protected]>
Subject: This is a test
Date: Wed, 29 Mar 2023 19:57:16

Eureka!

Send a test email:

curl smtps://172.17.0.2:465 -k -s --mail-from "[email protected]" --mail-rcpt "[email protected]" --ssl -T "/tmp/mailtest.txt"

Tag summary

Content type

Image

Digest

sha256:e5d9401f8…

Size

12.2 MB

Last updated

over 3 years ago

docker pull caligari/mailhog-tls