# Install swaks with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

SMTP command-line test tool. Version 20240103.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:swaks
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install swaks
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install swaks
```

  Evidence: MacPorts ports tree: perl/swaks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add swaks
```

  Evidence: Alpine Linux edge package indexes: swaks from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install swaks
```

  Evidence: Debian stable package indexes: swaks from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install swaks
```

  Evidence: Fedora Rawhide package metadata: swaks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#swaks
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sw/swaks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S swaks
```

  Evidence: Arch Linux sync databases: swaks from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install swaks
```

  Evidence: openSUSE Tumbleweed package metadata: swaks from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:swaks
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/swaks>
- **Version:** 20240103.0
- **Source summary:** SMTP command-line test tool
- **Homepage:** <https://www.jetmore.org/john/code/swaks/>
- **Repository:** <https://github.com/jetmore/swaks>
- **Upstream docs:** <https://github.com/jetmore/swaks/blob/v20240103.0/doc/base.pod>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://www.jetmore.org/john/code/swaks/files/swaks-20240103.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- swaks (cli)
- swaks (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 20240103.0
- Local data: ok
- Upstream repository: https://www.jetmore.org/john/code/swaks/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Swaks, the Swiss Army Knife for SMTP, is a scriptable command-line SMTP transaction tester. It is used by mail operators, developers, and automation scripts to exercise SMTP, ESMTP, LMTP, TLS, authentication, and message-delivery edge cases.

### Project history

The official project page describes Swaks as a featureful, flexible, scriptable, transaction-oriented SMTP test tool written and maintained by John Jetmore. The official versions page lists releases back to 2003, and the GitHub mirror/repository metadata shows the current source repository at jetmore/swaks.

### Adoption history

Swaks has broad package-manager coverage because SMTP testing is useful on servers, workstations, CI systems, and mail infrastructure. The input package facts list packages across apk, Homebrew, Debian, Fedora/dnf, MacPorts, Nix, Arch/pacman, Ubuntu, and zypper.

### How it is used

The reference documentation emphasizes transactions: choose a recipient and server, test authentication, attach EICAR or GTUBE payloads for mail-filter checks, use LMTP over a Unix socket, or script recipient verification loops. Options can come from a config file, environment variables, or command-line flags, with later sources overriding earlier ones.

### Why package nerds care

Swaks is beloved in package-manager culture because it is a single-purpose diagnostic executable with deep protocol knobs and minimal ceremony. It is the sort of tool administrators expect to install quickly during incident response, image building, or integration testing, which explains its presence in many Unix package sets.

### Timeline

- 2003: Earliest official release listed on the Swaks versions page.
- 2017: GitHub repository created.
- 2020: v20201014.0 and v20201024.0 releases appear in the official versions history.
- 2024: v20240103.0 released as the latest version listed on the official project page during research.

### Related projects

- Swaks is related to SMTP, ESMTP, LMTP, TLS, authentication mechanisms, mail filters, and test payload conventions such as EICAR and GTUBE, all of which appear in its official examples and feature list.

### Sources

- <https://api.github.com/repos/jetmore/swaks>
- <https://www.jetmore.org/john/code/swaks/>
- <https://www.jetmore.org/john/code/swaks/latest/doc/ref.txt>
- <https://www.jetmore.org/john/code/swaks/versions.html>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $SWAKS_HOME/.swaksrc, ~/.swaksrc, $LOGDIR/.swaksrc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swaks
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - swaks - 20240103.0-2: normalized package name match | Debian stable package indexes: swaks from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SMTP command-line test tool | https://www.jetmore.org/john/code/swaks/
- Nix - swaks: normalized package name match | nixpkgs package indexes: pkgs/by-name/sw/swaks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - swaks - 20240103.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: swaks from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SMTP command-line test tool | https://www.jetmore.org/john/code/swaks/
- apk - swaks - 20240103.0-r0: normalized package name match | Alpine Linux edge package indexes: swaks from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Swiss Army Knife for SMTP | https://www.jetmore.org/john/code/swaks/
- apk - swaks-doc - 20240103.0-r0: normalized package name match | Alpine Linux edge package indexes: swaks-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Swiss Army Knife for SMTP (documentation) | https://www.jetmore.org/john/code/swaks/
- dnf - swaks - 20240103.0-5.fc44: normalized package name match | Fedora Rawhide package metadata: swaks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Command-line SMTP transaction tester | http://www.jetmore.org/john/code/swaks
- pacman - swaks - 20240103.0-3: normalized package name match | Arch Linux sync databases: swaks from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Swiss Army Knife SMTP; Command line SMTP testing, including TLS and AUTH | https://jetmore.org/john/code/swaks/
- zypper - swaks - 20240103.0-2.4: normalized package name match | openSUSE Tumbleweed package metadata: swaks from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Swiss Army Knife for SMTP | https://jetmore.org/john/code/swaks/
- MacPorts - swaks: normalized package name match | MacPorts ports tree: perl/swaks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [sendemail](https://www.automicvault.com/pkg/brew/sendemail/) - Shares av.db curated category or tags: cli, email, networking, perl, smtp.
- [msmtp](https://www.automicvault.com/pkg/brew/msmtp/) - Shares av.db curated category or tags: cli, email, networking, smtp.
- [checkdmarc](https://www.automicvault.com/pkg/brew/checkdmarc/) - Shares av.db curated category or tags: cli, email, networking.
- [fetchmail](https://www.automicvault.com/pkg/brew/fetchmail/) - Shares av.db curated category or tags: cli, email, networking.
- [getmail6](https://www.automicvault.com/pkg/brew/getmail6/) - Shares av.db curated category or tags: cli, email, networking.
- [haraka](https://www.automicvault.com/pkg/brew/haraka/) - Shares av.db curated category or tags: cli, email, networking, smtp.
- [isync](https://www.automicvault.com/pkg/brew/isync/) - Shares av.db curated category or tags: cli, email, networking.
- [mailutils](https://www.automicvault.com/pkg/brew/mailutils/) - Shares av.db curated category or tags: cli, email, networking.

## Combined YAML source

View the package source record on GitHub. [combined/swaks.yml](https://github.com/automic-vault/db/blob/main/combined/swaks.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
