Sign inSign up

flowman/swaks

By flowman

•Updated over 5 years ago

Swaks - Swiss Army Knife for SMTP

Image
2

100K+

flowman/swaks repository overview

⁠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
⁠SWAKS version

This image uses SWAKS 20201014.0⁠ (full changelog⁠)

⁠Info

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.

⁠Usage

Refer to this doc for command line options⁠

⁠Simple
docker run --rm \
           flowman/swaks \
           -f [email protected] -t [email protected] -s hostname -p 25
⁠Seting specific timezone
docker run --rm \
           -e TZ="Europe/Berlin" \
           flowman/swaks \
           -f [email protected] -t [email protected] -s hostname -p 25
⁠Using an alias

Just put the following into your .bash_profile

alias swaks='_cmd() { docker run --rm -e TZ="Europe/Berlin" -v "$PWD":/root freinet/swaks "$@";}; _cmd'

Now you can even use a .swaksrc in your working directory and pull in attachments from there...

swaks -f [email protected] -t [email protected] -s hostname -p 25 --attach eicar.zip

Tag summary

Content type

Image

Digest

Size

25.4 MB

Last updated

over 5 years ago

docker pull flowman/swaks