This article is an orphan, as no other articles link to it . Please introduce links to this page from related articles . (November 2025) |
| Swaks | |
|---|---|
| Original author | John Jetmore |
| Developer | John Jetmore |
| Initial release | 2003 |
| Stable release | 20240103.0 |
| Repository | https://github.com/jetmore/swaks |
| Written in | Perl |
| License | GNU General Public License version 2 |
| Website | https://jetmore.org/john/code/swaks/ |
Swaks (Swiss Army Knife for SMTP) is a command-line tool designed for testing and debugging Simple Mail Transfer Protocol (SMTP) servers. It is written in Perl and supports a wide range of SMTP features, making it a popular utility among system administrators, [1] developers, [2] and penetration testers, [3] [4] along with email industry professionals. [5]
First released in 2003 [6] and distributed under the GNU General Public License (GPL), it is developed and maintained by John Jetmore. The software was primarily intended for use on UNIX-like operating systems, and is available in many package managers, including on Linux [7] and macOS. [8] While there are no native packages for Windows, users can install Perl and run the software themselves, or leverage Windows Subsystem for Linux. [9]
Swaks is typically used from the command line, but also integrates well with external tools and scripts for automated testing as options can also be specified in environment variables and configuration files. It supports SMTP, ESMTP, and LMTP, and protocol extensions such as TLS, authentication, and pipelining. Supported authentication mechanisms include PLAIN, LOGIN, CRAM-MD5, CRAM-SHA1, DIGEST-MD5, and NTLM/SPA/MSN.
Swaks can be used via multiple transport methods including UNIX and internet sockets, and pipes to spawned processes.
It is commonly used to troubleshoot [10] email issues, [11] but can also be used to simulate mail delivery failures, and verify authentication and encryption configurations. [12]