# 使用 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
- **版本:** 0.10.0
- **来源摘要:** Catches mail and serves it through a dream
- **主页:** <https://mailcatcher.me>
- **仓库:** <https://github.com/sj26/mailcatcher>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## Combined YAML source

View the package source record on GitHub. [combined/mailcatcher.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mailcatcher.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
