# Open-source alternatives to Mailgun

> Mailgun: An email API for sending, receiving and tracking transactional mail. The best self-hosted, open-source alternatives are Postal, Haraka and Stalwart Mail Server. All of them can run on your own server, so your data stays under your control. 5 of the 6 apps here are open source; 1 is source-available.

## Key facts

| Fact | Value |
|---|---|
| Commercial product | Mailgun |
| Category | Email Servers |
| Alternatives listed | 6 |
| Top pick | Postal (16,854 stars, MIT) |
| Canonical URL | https://appsgit.com/alternatives/mailgun |

## Alternatives, in recommended order

- [Postal](https://appsgit.com/apps/postal): Complete and fully featured mail server for use by websites & web servers. (16,854 stars, MIT, Ruby, Docker)
- [Haraka](https://appsgit.com/apps/haraka): Fast, highly extensible, and event driven SMTP server. (5,613 stars, MIT, JavaScript)
- [Stalwart Mail Server](https://appsgit.com/apps/stalwart-mail-server): All-in-one mail server with JMAP, IMAP4, and SMTP support and a wide range of modern features. (14,971 stars, AGPL-3.0, Rust, Docker)
- [Maddy Mail Server](https://appsgit.com/apps/maddy-mail-server): All-in-one mail server that implements SMTP (both MTA and MX) and IMAP. Replaces Postfix, Dovecot, OpenDKIM, OpenSPF, OpenDMARC with single daemon. (6,099 stars, GPL-3.0, Go)
- [Mox](https://appsgit.com/apps/mox): Complete e-mail solution with IMAP4, SMTP, SPF, DKIM, DMARC, MTA-STS, DANE and DNSSEC, reputation-based and content-based junk filtering, Internationalization (IDNA), automatic TLS with ACME and… (5,885 stars, MIT, Go)
- [Forward Email](https://appsgit.com/apps/forward-email): Privacy-focused encrypted email for everyone. All-in-one alternative to Gmail + Mailchimp + Sendgrid. (1,681 stars, BUSL-1.1, source-available, JavaScript, Docker)

More in this category: [Email Servers](https://appsgit.com/categories/email-servers)

---

Canonical page: https://appsgit.com/alternatives/mailgun
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
