# 使用 Homebrew, Nix 安装 mailcatcher

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

## 安装

```sh
sudo av install brew:mailcatcher
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mailcatcher
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mailcatcher
```

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

## 软件包事实

- **软件包键:** brew:mailcatcher
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mailcatcher>
- **版本:** 0.10.0
- **来源摘要:** Catches mail and serves it through a dream
- **主页:** <https://mailcatcher.me>
- **仓库:** <https://github.com/sj26/mailcatcher>
- **上游文档:** <https://github.com/sj26/mailcatcher#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/sj26/mailcatcher/archive/refs/tags/v0.10.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- catchmail (cli)
- mailcatcher (cli)
- catchmail (别名)
- mailcatcher (别名)

## 依赖

- libyaml
- openssl@3
- ruby

## 构建依赖

- pkgconf

## macOS 提供的库

- libedit
- libffi
- sqlite

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.10.0
- 本地数据: OK
- 上游仓库: https://github.com/sj26/mailcatcher
- 检测到的最新版本: v0.10.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

MailCatcher is a Ruby-based development SMTP sink: it runs a local SMTP server, captures outgoing mail, and exposes the captured messages in a web interface. The official README's default flow is still the classic developer loop: install, run `mailcatcher`, point an app at SMTP port 1025, and inspect mail on HTTP port 1080.

### 项目历史

The GitHub repository was created in October 2010, and the README copyright line credits Samuel Cochran from 2010 onward. MailCatcher emerged in the Ruby/Rails era where developers often needed to test application mail without sending real messages to users.

The tool's feature set stayed intentionally narrow and packageable: capture all mail, show HTML/plain/source views, rewrite embedded assets for display, expose attachments, support a sendmail-like `catchmail` helper, and provide command-line flags for SMTP and HTTP bind addresses and ports. Later releases added Docker usage examples and a simple REST-style message API.

### 采用历史

MailCatcher became a well-known local mail-testing package across Ruby and web-development workflows. Official instructions cover Rails, PHP, Django, Docker, RVM, Bundler caveats, and direct RubyGems installation, showing adoption across more than Ruby-only projects.

Repository metadata shows thousands of GitHub stars and hundreds of forks. The input package-manager facts confirm Homebrew and Nix packaging, while the README recommends keeping MailCatcher out of application Gemfiles to avoid dependency conflicts, reinforcing its role as a separate developer tool.

### 使用方式

The standard usage pattern is to run MailCatcher as a daemon or foreground process, configure the application under test to deliver mail to `smtp://127.0.0.1:1025`, and review the results at `http://127.0.0.1:1080/`. `catchmail` lets PHP and other sendmail-oriented software hand messages to the same capture service.

Package users care about its defaults: port 1025 for SMTP, port 1080 for HTTP, and command-line options rather than a project-specific config file. That makes it easy to install globally with a package manager and use across many local projects.

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

MailCatcher is historically important because it made fake SMTP a one-command local service before containerized dev stacks were the default. It is small, memorable, and easy to script, which is exactly why it kept showing up in package managers.

Its packaging story also highlights a common Ruby tool issue: the README explicitly warns against putting MailCatcher in an app Gemfile because its dependencies can conflict with the application. Installing it as a system or user tool via RubyGems, Homebrew, Nix, or Docker keeps that boundary clean.

### 时间线

- 2010: Public GitHub repository created.
- 2016: Older v0.6.x GitHub releases published.
- 2021: v0.8.0 release published.
- 2022: v0.8.2 release published.
- 2023: v0.9.0 release published.
- 2024: v0.10.0 release published.

### Related projects

- MailCatcher is related to other local SMTP testing tools such as MailHog and Mailpit.
- It also fits alongside framework-specific mail preview tools, but differs by acting as an external SMTP server that any application can target.

### 来源

- <https://api.github.com/repos/sj26/mailcatcher>
- <https://api.github.com/repos/sj26/mailcatcher/releases>
- <https://github.com/sj26/mailcatcher>
- <https://mailcatcher.me/>
- source_facts.package-manager
- source_facts.repo


## 安全说明

formula declares a Homebrew service.

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

## 源数据库详情

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

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

- Nix - mailcatcher: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mailcatcher/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Package publisher tools](https://www.automicvault.com/zh-hans/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [ruby](https://www.automicvault.com/zh-hans/pkg/brew/ruby/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [mailpit](https://www.automicvault.com/zh-hans/pkg/brew/mailpit/) - Shares av.db curated category or tags: cli, developer-tools, email-testing, smtp.
- [anycable-go](https://www.automicvault.com/zh-hans/pkg/brew/anycable-go/) - Shares av.db curated category or tags: cli, developer-tools, ruby.
- [arelo](https://www.automicvault.com/zh-hans/pkg/brew/arelo/) - Shares av.db curated category or tags: cli, developer-tools, development.
- [bento](https://www.automicvault.com/zh-hans/pkg/brew/bento/) - Shares av.db curated category or tags: cli, developer-tools, development.
- [binutils](https://www.automicvault.com/zh-hans/pkg/brew/binutils/) - Shares av.db curated category or tags: cli, developer-tools, development.
- [brew-gem](https://www.automicvault.com/zh-hans/pkg/brew/brew-gem/) - Shares av.db curated category or tags: cli, developer-tools, ruby.
- [chruby](https://www.automicvault.com/zh-hans/pkg/brew/chruby/) - Shares av.db curated category or tags: cli, developer-tools, ruby.
- [cucumber-ruby](https://www.automicvault.com/zh-hans/pkg/brew/cucumber-ruby/) - Shares av.db curated category or tags: cli, developer-tools, ruby.
- [maildev](https://www.automicvault.com/zh-hans/pkg/npm/maildev/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, development, email.
- [localstack](https://www.automicvault.com/zh-hans/pkg/brew/localstack/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, development, libyaml.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
