Skip to content

Flowman/docker-swaks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

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 from@mail.dev -t to@mail.dev -s hostname -p 25

Seting specific timezone

docker run --rm \
           -e TZ="Europe/Berlin" \
           flowman/swaks \
           -f from@mail.dev -t to@mail.dev -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 from@mail.dev -t to@mail.dev -s hostname -p 25 --attach eicar.zip

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published