# 使用 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/swaks>
- **版本:** 20240103.0
- **来源摘要:** SMTP command-line test tool
- **主页:** <https://www.jetmore.org/john/code/swaks/>
- **上游文档:** <https://www.jetmore.org/john/code/swaks/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://www.jetmore.org/john/code/swaks/files/swaks-20240103.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- swaks (cli)
- swaks (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 20240103.0
- 本地数据: OK
- 上游仓库: https://www.jetmore.org/john/code/swaks/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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
## 源数据库详情

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

## 其他软件包管理器记录

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://pkg.so/zh-hans/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [sendemail](https://pkg.so/zh-hans/brew/sendemail/) - Shares pkgdb curated category or tags: cli, email, networking, perl, smtp.
- [msmtp](https://pkg.so/zh-hans/brew/msmtp/) - Shares pkgdb curated category or tags: cli, email, networking, smtp.
- [exim](https://pkg.so/zh-hans/brew/exim/) - Shares pkgdb curated category or tags: cli, email, networking, smtp.
- [websocat](https://pkg.so/zh-hans/brew/websocat/) - Shares pkgdb curated category or tags: cli, networking, testing.
- [mailutils](https://pkg.so/zh-hans/brew/mailutils/) - Shares pkgdb curated category or tags: cli, email, networking.
- [isync](https://pkg.so/zh-hans/brew/isync/) - Shares pkgdb curated category or tags: cli, email, networking.
- [checkdmarc](https://pkg.so/zh-hans/brew/checkdmarc/) - Shares pkgdb curated category or tags: cli, email, networking.
- [localtunnel](https://pkg.so/zh-hans/brew/localtunnel/) - Shares pkgdb curated category or tags: cli, networking, testing.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
