# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix 安装 getmail6

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

## 安装

```sh
sudo av install brew:getmail6
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install getmail6
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install getmail6
```

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

### Linux

- apk (92%):

```sh
sudo apk add getmail6
```

  证据: Alpine Linux edge package indexes: getmail6 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install getmail6
```

  证据: Debian stable package indexes: getmail6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install getmail6
```

  证据: Fedora Rawhide package metadata: getmail6 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#getmail6
```

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

## 软件包事实

- **软件包键:** brew:getmail6
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/getmail6>
- **版本:** 6.20.00
- **来源摘要:** Extensible mail retrieval system with POP3, IMAP4, SSL support
- **主页:** <https://getmail6.org/>
- **仓库:** <https://github.com/getmail6/getmail6>
- **上游文档:** <https://getmail6.org/>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://github.com/getmail6/getmail6/archive/refs/tags/v6.20.00.tar.gz>
- **最后更新:** 2026-06-15T21:15:00Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- getmail (cli)
- getmail_fetch (cli)
- getmail_maildir (cli)
- getmail_mbox (cli)
- getmail (别名)
- getmail_fetch (别名)
- getmail_maildir (别名)
- getmail_mbox (别名)

## macOS 提供的库

- python

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 6.20.00
- 管理器更新时间: 2026-06-15
- 本地数据: OK
- 上游仓库: https://github.com/getmail6/getmail6
- 检测到的最新版本: v6.20.00 (当前)
## 项目历史与用法

getmail6 is the Python 3 continuation of getmail, an extensible mail retrieval system for POP3, IMAP4, SSL-protected mailboxes, filtering, and delivery to local mail stores or external delivery agents.

### 项目历史

The official documentation describes getmail version 6 as a port of getmail version 5 to Python 3 without adding features. The project preserves Charles Cazabon's getmail design while carrying the code through Python 3 compatibility, XDG configuration behavior, OAuth-related fixes, and mail-server compatibility changes.

### 采用历史

getmail6 took over an established role from getmail after Python 2 era packaging became harder to sustain. Its appearance in Homebrew, Alpine, Debian, Fedora, MacPorts, Nix, and Ubuntu package sets reflects the need for a maintained fetchmail alternative in Unix-like mail setups.

### 使用方式

Practitioners configure one or more retrievers and destinations in `getmailrc`, then run `getmail` manually, from cron, or as part of a local mail workflow. Common uses include pulling mail from POP3 or IMAP accounts, writing Maildir or mboxrd files, invoking an MDA, filtering messages, and using helper commands such as `getmail_fetch`, `getmail_maildir`, and `getmail_mbox`.

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

For package users, getmail6 matters because it keeps the conservative getmail workflow available on Python 3 systems. The project is intentionally evolutionary: compatibility fixes, configuration-path behavior, and mail-provider authentication changes carry more weight than new feature breadth.

### 时间线

- 1998: The getmail copyright history begins.
- 2019: getmail 5.14 was released by the original line.
- 2020: getmail6 version 6.00 made the code compatible with Python 3.
- 2020: Version 6.7 added XDG configuration-directory behavior.
- 2025: Version 6.19.08 removed Python 2 support code.

### Related projects

- getmail6 is related to the original getmail project and to fetchmail as the older mail retriever it was designed to replace.

### 来源

- <https://api.github.com/repos/getmail6/getmail6>
- <https://getmail6.org/configuration.html>
- <https://getmail6.org/documentation.html>
- <https://github.com/getmail6/getmail6>
- <https://raw.githubusercontent.com/getmail6/getmail6/master/docs/CHANGELOG>
- <https://raw.githubusercontent.com/getmail6/getmail6/master/docs/configuration.txt>
- <https://raw.githubusercontent.com/getmail6/getmail6/master/docs/documentation.txt>


## 安全说明

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: $XDG_CONFIG_HOME/getmail/getmailrc, ~/.config/getmail/getmailrc, ~/.getmail/getmailrc

## Credential files

- Unix: $XDG_CONFIG_HOME/getmail/getmailrc, ~/.config/getmail/getmailrc, ~/.getmail/getmailrc
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** getmail6
- **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 - getmail6 - 6.19.07-1: normalized package name match | Debian stable package indexes: getmail6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | mail retriever with support for POP3, IMAP4 and SDPS | https://getmail6.org/
- Nix - getmail6: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/getmail6/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - getmail6 - 6.18.13-1: normalized package name match | Ubuntu 24.04 LTS package indexes: getmail6 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | mail retriever with support for POP3, IMAP4 and SDPS | https://getmail6.org/
- apk - getmail6 - 6.19.12-r0: normalized package name match | Alpine Linux edge package indexes: getmail6 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | mail retriever with support for POP3, IMAP4 and SDPS | https://getmail6.org/
- apk - getmail6-doc - 6.19.12-r0: normalized package name match | Alpine Linux edge package indexes: getmail6-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | mail retriever with support for POP3, IMAP4 and SDPS (documentation) | https://getmail6.org/
- apk - getmail6-pyc - 6.19.12-r0: normalized package name match | Alpine Linux edge package indexes: getmail6-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for getmail6 | https://getmail6.org/
- dnf - getmail6 - 6.20.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: getmail6 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A mail retrieval, sorting, and delivering system | https://www.getmail6.org/
- MacPorts - getmail6: normalized package name match | MacPorts ports tree: mail/getmail6/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - getmail: installed executable or alias match | MacPorts ports tree: mail/getmail/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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [fetchmail](https://pkg.so/zh-hans/brew/fetchmail/) - Shares pkgdb curated category or tags: cli, email, imap, mail-retrieval, networking.
- [mailutils](https://pkg.so/zh-hans/brew/mailutils/) - Shares pkgdb curated category or tags: cli, email, imap, networking, pop3.
- [dovecot](https://pkg.so/zh-hans/brew/dovecot/) - Shares pkgdb curated category or tags: cli, email, imap, networking, pop3.
- [mpop](https://pkg.so/zh-hans/brew/mpop/) - Shares pkgdb curated category or tags: cli, email, mail-retrieval, networking, pop3.
- [nginx](https://pkg.so/zh-hans/brew/nginx/) - Shares pkgdb curated category or tags: cli, imap, networking, pop3.
- [isync](https://pkg.so/zh-hans/brew/isync/) - Shares pkgdb curated category or tags: cli, email, imap, networking.
- [checkdmarc](https://pkg.so/zh-hans/brew/checkdmarc/) - Shares pkgdb curated category or tags: cli, email, networking, python.
- [goimapnotify](https://pkg.so/zh-hans/brew/goimapnotify/) - Shares pkgdb curated category or tags: cli, email, imap, networking.

## Combined YAML source

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