# 使用 Homebrew, MacPorts, Nix, scoop, winget 安装 mailpit

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

## 安装

```sh
sudo av install brew:mailpit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mailpit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mailpit
```

  证据: MacPorts ports tree: mail/mailpit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mailpit
```

  证据: nixpkgs package indexes: pkgs/by-name/ma/mailpit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/mailpit
```

  证据: Scoop official bucket manifest trees: bucket/mailpit.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id axllent.mailpit -e
```

  证据: Windows Package Manager source index: axllent.mailpit from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:mailpit
- **软件包管理器:** Homebrew
- **版本:** 1.30.6
- **来源摘要:** Web and API based SMTP testing
- **主页:** <https://mailpit.axllent.org/>
- **仓库:** <https://github.com/axllent/mailpit>
- **最后更新:** 2026-07-29T17:04:50+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mailpit (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Mailpit is a Go-based email and SMTP testing tool for developers, combining an SMTP server, modern web UI, REST API, and optional POP3/relay/forwarding features in a single static binary or Docker image.

### 项目历史

The public GitHub repository was created in July 2022, and the first listed GitHub release, `0.0.1-beta`, was published the same day. The README states that Mailpit was originally inspired by MailHog, which the project identifies as no longer maintained.

Mailpit's development direction is explicit in its official docs: it keeps the one-command local SMTP sink pattern but expands it with a modern UI, API-first integration testing, HTML/link/spam checks, message tagging, webhook support, SMTP relaying and forwarding, optional authentication, and persistent SQLite-backed storage.

### 采用历史

Mailpit grew quickly for a young developer tool. Repository metadata shows thousands of GitHub stars by 2026, regular releases through the v1.30 series, and active updates. The README advertises static binaries, Docker images, Homebrew, AUR, and FreeBSD package installation.

The input package-manager facts show broad packaging across Homebrew, MacPorts, Nix, Scoop, and Winget. That cross-platform spread matters because email testing tools are often used by mixed teams and in CI systems where a single static binary is easier than a language-specific runtime.

### 使用方式

The default developer flow is to run `mailpit`, point an application at SMTP port 1025, and open the web UI on port 8025. Tests can use the REST API, while users can add authentication, TLS, POP3, SMTP relay, forwarding, webhooks, and persistent storage through flags or environment variables.

The docs also describe Homebrew service usage, Docker deployment, sendmail substitution, and runtime options. For package users, Mailpit is attractive because it is a single binary with many integration-test affordances that previously required gluing several tools together.

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

Mailpit is significant in package-manager culture as a modern successor-style tool for the local fake-SMTP niche: small enough to install globally, but featureful enough for automated test suites and shared development environments.

It also shows how packaging expectations changed since older tools such as MailCatcher and MailHog: users expect static binaries, Docker images, Homebrew services, Windows package-manager entries, health/API endpoints, and release cadence suitable for CI pinning.

### 时间线

- 2022: Repository created and `0.0.1-beta` released.
- 2023: v1.9.x and v1.10.0 releases published.
- 2024: Continued v1.x releases and documentation around static binaries, Docker, and package managers.
- 2026: v1.30.x releases published with active repository updates.

### Related projects

- The README explicitly names MailHog as an inspiration and maintenance-gap motivation.
- Mailpit is related to MailCatcher and other fake-SMTP development tools, but emphasizes a single static binary, API support, and modern web UI features.

### 来源

- <https://api.github.com/repos/axllent/mailpit>
- <https://api.github.com/repos/axllent/mailpit/releases>
- <https://github.com/axllent/mailpit>
- <https://mailpit.axllent.org/docs>
- <https://mailpit.axllent.org/docs/configuration/runtime-options/>
- source_facts.package-manager
- source_facts.repo


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service

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

- Nix - mailpit: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mailpit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - mailpit: normalized package name match | MacPorts ports tree: mail/mailpit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/mailpit: normalized package name match | Scoop official bucket manifest trees: bucket/mailpit.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - axllent.mailpit: normalized package name match | Windows Package Manager source index: axllent.mailpit from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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