# Install msmtp with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

SMTP client that can be used as an SMTP plugin for Mutt. Version 1.8.32 via Homebrew; verified 2026-06-21.

## Install

```sh
sudo av install brew:msmtp
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install msmtp
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install msmtp
```

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

### Linux

- apk (92%):

```sh
sudo apk add msmtp
```

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

- Debian apt (92%):

```sh
sudo apt install msmtp
```

  Evidence: Debian stable package indexes: msmtp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install msmtp
```

  Evidence: Fedora Rawhide package metadata: msmtp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#msmtp
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ms/msmtp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S msmtp
```

  Evidence: Arch Linux sync databases: msmtp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install msmtp
```

  Evidence: openSUSE Tumbleweed package metadata: msmtp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:msmtp
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/msmtp>
- **Version:** 1.8.32
- **Source summary:** SMTP client that can be used as an SMTP plugin for Mutt
- **Homepage:** <https://marlam.de/msmtp/>
- **Repository:** <https://git.marlam.de/git/msmtp.git>
- **Upstream docs:** <https://marlam.de/msmtp/documentation>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://marlam.de/msmtp/releases/msmtp-1.8.32.tar.xz>
- **Last updated:** 2026-06-21T15:59:39-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- msmtp (cli)
- msmtpd (cli)
- msmtp (alias)
- msmtpd (alias)

## Dependencies

- gettext
- gnutls
- libidn2

## Build dependencies

- pkgconf

## 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: 1.8.32
- Package-manager updated: 2026-06-21
- Local data: ok
- Upstream repository: https://marlam.de/msmtp/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

msmtp is Martin Lambers's lightweight SMTP client for Unix-like mail workflows. The AUTHORS file says msmtp was mostly written by Lambers and that much of its code is shared with mpop. Its manual describes the default mode: read a message from standard input and send it to a configured SMTP server, while keeping command-line options and exit codes compatible with sendmail.

### Project history

The project grew into a focused replacement for the sending side of a local mail transfer agent. Its configuration organizes SMTP servers as accounts with host, authentication, TLS, and related settings, and the manual documents TLS, multiple authentication mechanisms, delivery status notifications, PIPELINING, server-information mode, Remote Message Queue Starting, and the minimal SMTP server msmtpd.

### How it is used

msmtp's adoption niche is the modular command-line mail stack. It is commonly paired with MUAs rather than acting as a full mail server: the Debian wiki names Mutt and Emacs as examples, and the manual includes examples for Mutt and traditional mail commands. Package managers often provide it as both the `msmtp` executable and a sendmail-compatible MTA alternative for scripts, cron jobs, and small systems that only need outbound SMTP relay.

### Sources

- <https://formulae.brew.sh/formula/msmtp>
- <https://github.com/marlam/msmtp/blob/master/AUTHORS>
- <https://marlam.de/msmtp/msmtp.html>
- <https://wiki.debian.org/msmtp>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## 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: SYSCONFDIR/msmtprc, ~/.msmtprc, $XDG_CONFIG_HOME/msmtp/config

## Credential files

- Unix: ~/.netrc, SYSCONFDIR/netrc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** msmtp
- **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

## Other Package-Manager Records

- Debian apt - msmtp - 1.8.28-3: normalized package name match | Debian stable package indexes: msmtp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | light SMTP client with support for server profiles | https://marlam.de/msmtp/
- Debian apt - msmtp-mta - 1.8.28-3: normalized package name match | Debian stable package indexes: msmtp-mta from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | light SMTP client with support for server profiles - the regular MTA | https://marlam.de/msmtp/
- Nix - msmtp: normalized package name match | nixpkgs package indexes: pkgs/by-name/ms/msmtp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - msmtp - 1.8.24-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: msmtp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | light SMTP client with support for server profiles | https://marlam.de/msmtp/
- Ubuntu apt - msmtp-mta - 1.8.24-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: msmtp-mta from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | light SMTP client with support for server profiles - the regular MTA | https://marlam.de/msmtp/
- apk - msmtp - 1.8.32-r1: normalized package name match | Alpine Linux edge package indexes: msmtp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SMTP client with a sendmail compatible interface | https://marlam.de/msmtp/
- apk - msmtp-doc - 1.8.32-r1: normalized package name match | Alpine Linux edge package indexes: msmtp-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SMTP client with a sendmail compatible interface (documentation) | https://marlam.de/msmtp/
- apk - msmtp-lang - 1.8.32-r1: normalized package name match | Alpine Linux edge package indexes: msmtp-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Languages for package msmtp | https://marlam.de/msmtp/
- apk - msmtp-openrc - 1.8.32-r1: normalized package name match | Alpine Linux edge package indexes: msmtp-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SMTP client with a sendmail compatible interface (OpenRC init scripts) | https://marlam.de/msmtp/
- apk - msmtp-vim - 1.8.32-r1: normalized package name match | Alpine Linux edge package indexes: msmtp-vim from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Vim syntax for msmtp | https://marlam.de/msmtp/
- dnf - msmtp - 1.8.32-1.fc45: normalized package name match | Fedora Rawhide package metadata: msmtp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | SMTP client | https://marlam.de/msmtp/
- pacman - msmtp - 1.8.32-1: normalized package name match | Arch Linux sync databases: msmtp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A mini smtp client | https://marlam.de/msmtp/
- zypper - msmtp - 1.8.32-1.3: normalized package name match | openSUSE Tumbleweed package metadata: msmtp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Lightweight SMTP Client | https://marlam.de/msmtp/
- zypper - msmtp-doc - 1.8.32-1.3: normalized package name match | openSUSE Tumbleweed package metadata: msmtp-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Documentation for msmtp | https://marlam.de/msmtp/
- zypper - msmtp-lang - 1.8.32-1.3: normalized package name match | openSUSE Tumbleweed package metadata: msmtp-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Translations for package msmtp | https://marlam.de/msmtp/
- zypper - msmtp-mta - 1.8.32-1.3: normalized package name match | openSUSE Tumbleweed package metadata: msmtp-mta from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | MTA based on msmtp | https://marlam.de/msmtp/


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [gnutls](https://www.automicvault.com/pkg/brew/gnutls/) - Runtime dependency declared by Homebrew.
- [libidn2](https://www.automicvault.com/pkg/brew/libidn2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [sendemail](https://www.automicvault.com/pkg/brew/sendemail/) - Shares av.db curated category or tags: cli, email, mail-client, networking, smtp.
- [mailutils](https://www.automicvault.com/pkg/brew/mailutils/) - Shares av.db curated category or tags: cli, email, mail-client, networking.
- [swaks](https://www.automicvault.com/pkg/brew/swaks/) - Shares av.db curated category or tags: cli, email, networking, smtp.
- [checkdmarc](https://www.automicvault.com/pkg/brew/checkdmarc/) - Shares av.db curated category or tags: cli, email, networking.
- [fetchmail](https://www.automicvault.com/pkg/brew/fetchmail/) - Shares av.db curated category or tags: cli, email, networking.
- [getmail6](https://www.automicvault.com/pkg/brew/getmail6/) - Shares av.db curated category or tags: cli, email, networking.
- [haraka](https://www.automicvault.com/pkg/brew/haraka/) - Shares av.db curated category or tags: cli, email, networking, smtp.
- [isync](https://www.automicvault.com/pkg/brew/isync/) - Shares av.db curated category or tags: cli, email, networking.
- [mpop](https://www.automicvault.com/pkg/brew/mpop/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, email, gettext, gnutls.

## Combined YAML source

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