# Install nmail with Homebrew, apk, MacPorts

Terminal-based email client for Linux and macOS. Version 5.13.7 via Homebrew; verified 2026-06-27.

## Install

```sh
sudo av install brew:nmail
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nmail
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nmail
```

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

### Linux

- apk (92%):

```sh
sudo apk add nmail
```

  Evidence: Alpine Linux edge package indexes: nmail from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

## Package facts

- **Package key:** brew:nmail
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/nmail>
- **Version:** 5.13.7
- **Source summary:** Terminal-based email client for Linux and macOS
- **Homepage:** <https://github.com/d99kris/nmail>
- **Repository:** <https://github.com/d99kris/nmail>
- **Upstream docs:** <https://github.com/d99kris/nmail#readme>
- **License:** MIT
- **Source archive:** <https://github.com/d99kris/nmail/archive/refs/tags/v5.13.7.tar.gz>
- **Last updated:** 2026-06-27T09:35:11Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- html2nmail (cli)
- nmail (cli)
- oauth2nmail (cli)
- html2nmail (alias)
- nmail (alias)
- oauth2nmail (alias)

## Dependencies

- libmagic
- ncurses
- openssl@3
- xapian

## Build dependencies

- cmake

## Uses from macOS

- curl
- cyrus-sasl
- expat
- sqlite

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 5.13.7
- Package-manager updated: 2026-06-27
- Local data: ok
- Upstream repository: https://github.com/d99kris/nmail
- Upstream latest detected: v5.13.7 (current)
## Project history and usage

nmail is a terminal email client for Linux and macOS by d99kris, with an interface intentionally reminiscent of Alpine but a smaller, simpler feature set. It speaks IMAP and SMTP, stores a local SQLite cache, supports optional AES-256 cache encryption, and includes setup paths for Gmail, iCloud, Outlook/Hotmail, and OAuth2 variants.

### Project history

The public tag history starts with v0.99 on November 7, 2019 and continues through regular 5.x releases, including v5.13.7 on May 23, 2026. The README's out-of-scope list is useful history in miniature: nmail is not trying to be mutt, notmuch, or a multi-account mail workbench; it chooses one-account-per-session, remote IMAP/SMTP, an external editor, and a terminal UI.

### Adoption history

nmail occupies the modern lightweight-TUI mail niche: easier setup than classic power-user clients, but still local and keyboard-first. Homebrew's API reported 54 installs in 30 days, 108 in 90 days, and 462 in 365 days when checked on July 1, 2026, with package-manager support also documented for MacPorts, Arch/AUR, and Guix.

### How it is used

Users typically start with `nmail -s gmail`, `nmail -s gmail-oauth2`, `nmail -s icloud`, or `nmail -s outlook-oauth2`, then compose in `$EDITOR`, view through terminal/external viewers, search local cache, and optionally export cached mail as Maildir. Its privacy document states that it does not include telemetry or background network access beyond configured mail servers.

### Timeline

- 2019-11-07: first visible tag, v0.99.
- 2023-03-08: issue discussion shows real-world Outlook OAuth2 usage around v4.14.
- 2026-05-23: v5.13.7 tag and Homebrew stable version.
- 2026-07-01: Homebrew formula reports 462 installs over the preceding 365-day analytics window.

### Related projects

- Alpine
- mutt
- aerc
- notmuch

### Sources

- <https://formulae.brew.sh/api/formula/nmail.json>
- <https://github.com/d99kris/nmail>
- <https://github.com/d99kris/nmail/releases>
- <https://raw.githubusercontent.com/d99kris/nmail/master/README.md>
- <https://raw.githubusercontent.com/d99kris/nmail/master/doc/PRIVACY.md>


## Security Notes

No matching local secret-handling manifest was found for nmail. Nucleus package metadata is still published here so future coverage has a stable package URL.



## 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: ~/.config/nmail/main.conf, ~/.config/nmail/auth.conf

## Credential files

- Unix: ~/.config/nmail/secret.conf
## Source Database Details

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

## Other Package-Manager Records

- apk - nmail - 5.11.4-r0: normalized package name match | Alpine Linux edge package indexes: nmail from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal-based email client | https://github.com/d99kris/nmail
- apk - nmail-doc - 5.11.4-r0: normalized package name match | Alpine Linux edge package indexes: nmail-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal-based email client (documentation) | https://github.com/d99kris/nmail
- apk - nmail-oauth - 5.11.4-r0: normalized package name match | Alpine Linux edge package indexes: nmail-oauth from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal-based email client (OAuth2 Python helper script) | https://github.com/d99kris/nmail
- MacPorts - nmail: normalized package name match | MacPorts ports tree: mail/nmail/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [ncurses](https://www.automicvault.com/pkg/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [xapian](https://www.automicvault.com/pkg/brew/xapian/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [neomutt](https://www.automicvault.com/pkg/brew/neomutt/) - Shares av.db curated category or tags: cli, email, imap, productivity, smtp.
- [himalaya](https://www.automicvault.com/pkg/brew/himalaya/) - Shares av.db curated category or tags: cli, email, imap, productivity, smtp.
- [pop](https://www.automicvault.com/pkg/brew/pop/) - Shares av.db curated category or tags: cli, email, productivity, smtp, terminal.
- [aerc](https://www.automicvault.com/pkg/brew/aerc/) - Shares av.db curated category or tags: cli, email, productivity, terminal.
- [alot](https://www.automicvault.com/pkg/brew/alot/) - Shares av.db curated category or tags: cli, email, productivity, terminal.
- [alpine](https://www.automicvault.com/pkg/brew/alpine/) - Shares av.db curated category or tags: cli, email, productivity, terminal.
- [imap-backup](https://www.automicvault.com/pkg/brew/imap-backup/) - Shares av.db curated category or tags: cli, email, imap, productivity.
- [imapfilter](https://www.automicvault.com/pkg/brew/imapfilter/) - Shares av.db curated category or tags: cli, email, imap, productivity.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
