Automic VaultAutomic Vault

brew

使用 Homebrew, Nix 安装 mailcatcher

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mailcatcher

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#mailcatcher

nixpkgs package indexes · pkgs/by-name/ma/mailcatcher/package.nix · 来源: api.github.com

概览

软件包摘要

Catches mail and serves it through a dream

命令和别名

  • catchmail
  • mailcatcher

历史

项目历史与用法

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.

安全态势

风险级别:orange

formula declares a Homebrew service.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • formula declares a Homebrew service

信号

  • metadata:service

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • formula 元数据声明了服务或守护进程块。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 3 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
catchmailcli全局可执行文件
mailcatchercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本0.10.0
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v0.10.0

https://github.com/sj26/mailcatcher

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:mailcatcher
版本0.10.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/mailcatcher
主页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
依赖libyaml, openssl@3, ruby
构建依赖pkgconf
macOS 提供的库libedit, libffi, sqlite
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务declared

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemailcatcher
Version Scheme0
Revision2
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

mailcatcher

nix profile install nixpkgs#mailcatcher
  • normalized package name match
  • 匹配方式:Mailcatcher
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ma/mailcatcher/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment