What is SWAKS?
Swaks is a featureful, flexible, scriptable, transaction-oriented SMTP test tool. Features include:
- SMTP extensions including TLS, authentication, pipelining, and XCLIENT
- Protocols including SMTP, ESMTP, and LMTP
- Transports including unix-domain sockets, internet-domain sockets (IPv4 and IPv6), and pipes to spawned processes
- Completely scriptable configuration, with option specification via environment variables, configuration files, and command line
This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.
Refer to this doc for command line options
docker run --rm \ flowman/swaks \ -f email@example.com -t firstname.lastname@example.org -s hostname -p 25