---
title: Install Mailpit on Linux | Snap Store
description: Get the latest version of Mailpit for Linux - Email and SMTP testing
  tool with a web interface and an API
url: https://snapcraft.io/mailpit
---

# Mailpit

[Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")

* [Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")
* [Productivity](https://snapcraft.io/search?categories=productivity)
* [Server and Cloud](https://snapcraft.io/search?categories=server-and-cloud)

latest/stable 1.33.1

Install latest/stable of Mailpit

---

**Install using the command line**

```
sudo snap install mailpit
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* mailpit

---

### License

* MIT

---

### Last updated

* Today - latest/stable
* Today - latest/candidate

---

### Websites

* [mailpit.axllent.org](https://mailpit.axllent.org "https://mailpit.axllent.org")

---

### Contact

* [github.com/sidalit/mailpit-snap/issues](https://github.com/sidalit/mailpit-snap/issues "https://github.com/sidalit/mailpit-snap/issues")

---

### Source code

* [github.com/axllent/mailpit](https://github.com/axllent/mailpit "https://github.com/axllent/mailpit")
* [github.com/sidalit/mailpit-snap](https://github.com/sidalit/mailpit-snap "https://github.com/sidalit/mailpit-snap")

---

### Report a bug

* [github.com/axllent/mailpit/issues](https://github.com/axllent/mailpit/issues "https://github.com/axllent/mailpit/issues")
* [github.com/sidalit/mailpit-snap/issues](https://github.com/sidalit/mailpit-snap/issues "https://github.com/sidalit/mailpit-snap/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/mailpit#report-snap-modal)

---

* [Description](https://snapcraft.io/mailpit#tab-description)
* [Security](https://snapcraft.io/mailpit#tab-security)

#### Email and SMTP testing tool with a web interface and an API

Mailpit catches the email your applications send. Its SMTP server stores
every message, a web interface shows them (HTML, text, source, headers
and attachments) and a REST API lets automated tests read them. It also
offers message tagging, HTML and link checks, SMTP relaying and an
optional POP3 server.

**Getting started**

The service starts right after installation and listens on this machine
only: SMTP on 127.0.0.1:1025, the web interface and API on
<http://127.0.0.1:8025>. Send a test message:

```
printf 'To: you@example.com\nSubject: Test\n\nHello\n' | mailpit sendmail
```

**Settings**

```
sudo snap set mailpit smtp-address=0.0.0.0:1025
sudo snap set mailpit http-address=0.0.0.0:8025
```

Other upstream settings, such as authentication, TLS, relaying and
message limits, go in /var/snap/mailpit/common/mailpit.env as MP\_\*
variables. Restart the service after editing it:

```
sudo snap restart mailpit.daemon
```

**sendmail**

mailpit.sendmail is a sendmail replacement that delivers to the service.

Captured mail is stored in /var/snap/mailpit/common. Updates come through
snap refresh; the upstream version check is disabled.

---

## Install Mailpit on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/mailpit/arch)

[### CentOS](https://snapcraft.io/install/mailpit/centos)

[### Debian](https://snapcraft.io/install/mailpit/debian)

[### elementary OS](https://snapcraft.io/install/mailpit/elementary)

[### Fedora](https://snapcraft.io/install/mailpit/fedora)

[### KDE Neon](https://snapcraft.io/install/mailpit/kde-neon)

[### Kubuntu](https://snapcraft.io/install/mailpit/kubuntu)

[### Manjaro](https://snapcraft.io/install/mailpit/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/mailpit/pop)

[### openSUSE](https://snapcraft.io/install/mailpit/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/mailpit/rhel)

[### Ubuntu](https://snapcraft.io/install/mailpit/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/mailpit/raspbian)
