# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 swaks

查看 swaks 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swaks
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install swaks
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

- Nix (92%):

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

  证据: 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
```

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: swaks from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:swaks
- **软件包管理器:** Homebrew
- **版本:** 20240103.0
- **来源摘要:** SMTP command-line test tool
- **主页:** <https://www.jetmore.org/john/code/swaks/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- swaks (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 20240103.0
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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
## 其他软件包管理器记录

- 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-6.fc45: normalized package name match | Fedora Rawhide package metadata: swaks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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.6: normalized package name match | openSUSE Tumbleweed package metadata: swaks from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## Combined YAML source

View the package source record on GitHub. [combined/swaks.yml](https://github.com/mxcl/pkgdb/blob/main/combined/swaks.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
