Swaks - Swiss Army Knife for SMTP

A scriptable, transaction-oriented SMTP test tool

Installation

This page lists various ways to install Swaks. Swaks is written in pure Perl. As such, its installation is very easy - just download the script from the web, save it as a file, mark it executable (if needed by your operating system), and then run it. Swaks is also available as a package on pretty much every operating system. None of the operating system packages are maintained by the Swaks project, so any issues should be opened against packaging project. Unless you are an experienced system administrator (and often even if you are), installing via your operating system distribution will likely be the easiest way to install Swaks.

Please feel free to suggest new platforms which you know package Swaks, via email or pull request.

return to main page


Supported by the Swaks project

These three methods are the officially-supported way of downloading Swaks. These should work natively on any Unix-like system (Linux, BSD, Solaris, Mac OS X), and the CPAN method should work on any system on which Perl is installed.

Unpackaged

This method just downloads the script itself. No documentation is included.


curl -O https://jetmore.org/john/code/swaks/files/swaks-20201014.0/swaks
chmod 755 ./swaks
        
Packaged

This method downloads the release package, which includes documentation.


curl -O https://jetmore.org/john/code/swaks/files/swaks-20201014.0.tar.gz
tar -xvzf swaks-20201014.0.tar.gz
chmod 755 ./swaks-20201014.0/swaks
        
CPAN

Swaks is on CPAN as App::swaks. Any of the standard Perl tools can be used to download and install the package. The primary advantage of using the CPAN distribution is that it provides ease of installation on operating systems which do not otherwise package Swaks, including Windows.


# use CPAN
# will be installed in the bin directory of Perl's install base.
# probably pointed to by: perl -MConfig -e 'Config::config_vars(qw(prefix));'
sudo cpan install App::swaks
# Standard manual installation, using an alternate install location
# will be installed in ~/bin
perl Makefile.PL INSTALL_BASE=~/
        
macOS / Mac OS X
Linux
Linux
BSD
Windows

There's no packaged version in Windows. The easiest way to install in Windows is to use the CPAN-packaged App::swaks. Keep in mind that a working Perl will need to be installed (Strawberry Perl and ActiveState Perl both work)