https://gitlab.com/tozd/docker/mailer
Available as:
tozd/base ← tozd/dinit ← tozd/mailer
See also tozd/nginx-mailer.
ubuntu-trusty: nullmailer 1.11ubuntu-xenial: nullmailer 1.13ubuntu-bionic: nullmailer 2.1ubuntu-focal: nullmailer 2.2ubuntu-jammy: nullmailer 2.2ubuntu-noble: nullmailer 2.2
amd64arm64
/var/log/nullmailer: Log files whenLOG_TO_STDOUTis not set to1./var/spool/nullmailer: Work files (e.g., queue). Persist this volume to not lose state.
ADMINADDR: If set, all e-mails to system users inside a container are send to this address.REMOTES: E-mail relay server the container should be using to send e-mails.LOG_TO_STDOUT: If set to1output logs to stdout (retrievable usingdocker logs) instead of log volumes.
Image with a simple e-mailing out of the container using nullmailer.
When LOG_TO_STDOUT is set to 1, Docker image logs output to stdout and stderr. All stdout output is JSON.
This image primarily serves as a base image for other images which need to send e-mails out.
It does not really deliver e-mails to wide Internet, but just relays it to the e-mail server
you configure in REMOTES. But programs in your extended images do not have to worry
about all that and can just use sendmail program locally.
If you need sending e-mails to wide Internet, consider using tozd/postfix
Docker image. You can also then set REMOTES to send all e-mail to a tozd/postfix container.
There is also a read-only GitHub mirror available, if you need to fork the project there.