Alternatives

Open-source and self-hosted alternatives to Resend, Mailgun and SendGrid

Short answer

The main open-source alternatives to Resend, Mailgun and SendGrid are Postal (MIT, a full mail server you run yourself), Plunk (AGPL, an email platform that sends through your own Amazon SES account) and listmonk (AGPL, a newsletter manager with a template-based transactional endpoint that sends through SMTP servers you configure). All three were actively maintained in November 2026. The hard part is not the software but deliverability: IP reputation, port 25 and bounce handling.

Last checked 16 November 2026

At a glance

FeatureFree planFromBest for
PostalFree software (MIT)Your server, IPs and timeRunning your own mail server
Plunk (self-hosted)Free software (AGPL-3.0)Your server plus SES at $0.10 per 1,000Open-source API on SES
listmonkFree software (AGPL-3.0)Your server plus an SMTP providerNewsletters and mailing lists
Plunk (hosted)1,000/month$1 per 1,000Plunk without the ops
Amazon SESNo SES quota (AWS credits)$0.10 per 1,000Raw sending for self-hosters
Mailcandor (not open source)3,000/month, 100/day$0.50 per 1,000Managed, Resend-compatible API
Verdict

If you want an open-source Resend alternative with an API, self-host Plunk on your own SES account. If you want to own the whole delivery path, including IPs, run Postal, and budget time for IP reputation. Use listmonk for newsletters, not as an app email API. If you only wanted to leave Resend, a managed provider is less work.

The main open-source alternatives to Resend, Mailgun and SendGrid are Postal, Plunk and listmonk. Plunk is the closest to Resend: an email platform with an API that you self-host and point at your own Amazon SES account. Postal is a complete mail server for sending and receiving that you run on your own IPs. listmonk is a newsletter manager, useful for lists but not a general app email API. All three repositories were active and not archived when we checked on 16 November 2026.

Before choosing, be honest about the hard part. The code is free. Getting mail into inboxes from your own infrastructure is not.

Why people look for an open-source email API

  • Control. You own the code, the data and the logs.
  • No account suspensions by a vendor. You still answer to the mailbox providers, but nobody can switch your account off.
  • Cost at scale. Plunk on SES pays SES rates, $0.10 per 1,000 on the a la carte rate.
  • Licensing or policy. Some teams must self-host.

What self-hosting actually involves

  • Port 25. Server-to-server mail uses SMTP on port 25 (RFC 5321). Postal’s docs say your provider must allow outbound port 25, and many block it.
  • IP reputation. Postal’s docs warn that a new server’s IP may already be on blocklists, so you may have to try several providers. Then you warm the IP up slowly. See email warm-up.
  • DNS. SPF, DKIM, DMARC and a reverse DNS record for every sending IP. See reverse DNS for email.
  • Bounces and complaints. You process them and suppress bad addresses yourself, or your reputation drops.
  • Operations. Upgrades, backups, monitoring and on-call.

Plunk avoids the first two by sending through SES. Postal does not.

1. Postal

What it is: in its own words, “a fully featured open source mail delivery platform for incoming & outgoing e-mail”. MIT licence, about 17,000 GitHub stars, latest release 3.4.0 in November 2026. See the repository.

Who it suits: teams that want to run their own mail server and IPs, replacing Mailgun or SendGrid end to end.

What it needs: per the prerequisites, a dedicated server (at least 4 GB RAM, 2 CPU cores, 25 GB disk), Docker with Compose, git, curl and jq, MariaDB 10.6 or later (MySQL is not supported) and outbound port 25.

Pricing: free software. You pay for the server, its IPs and the time to run it.

Pros: sends and receives; HTTP API with JSON and an X-Server-API-Key header, plus SMTP; permissive licence; full control of IPs.

Cons: you own deliverability, including IP reputation and blocklists; not Resend-compatible, so send calls need rewriting.

2. Plunk (self-hosted)

What it is: “The Open-Source Email Platform”, AGPL-3.0, about 5,600 GitHub stars, v0.18.0 released 1 November 2026. See the repository.

Who it suits: developers who want a Resend-style product they can run themselves.

What it needs: per the self-hosting docs, Docker and Docker Compose, AWS SES for sending, and a domain with subdomains for the dashboard and API.

Pricing: free software, plus your server and SES sending fees.

Pros: transactional and marketing email, inbound by webhook, unlimited contacts; SES handles IP reputation; a hosted version exists if you change your mind ($0.001 per email after 1,000 free).

Cons: you still need SES production access, which AWS reviews; AGPL obligations if you modify and offer it as a service; SDKs and retention not published.

3. listmonk

What it is: a “high performance, self-hosted, newsletter and mailing list manager with a modern dashboard”, a single binary with Postgres as its only dependency. AGPL-3.0, about 24,300 GitHub stars; most recent release v7.0.0-beta.2 on 10 November 2026. See the repository.

Who it suits: teams that want self-hosted newsletters.

What it needs: Postgres, and SMTP servers to send through; its configuration docs describe an SMTP connection pool.

Pricing: free software, plus your server and whatever your SMTP provider charges.

Pros: strong list and campaign tooling; a transactional endpoint, POST /api/tx.

Cons: every transactional message needs a preconfigured template; it is not a mail server, so you still need a sending provider.

4. Amazon SES as the sending layer

Plunk self-hosted and listmonk both need somewhere to send from. SES is the usual choice at $0.10 per 1,000. You get AWS’s IPs and reputation, and you request production access out of the sandbox.

5. A managed option, for comparison

Mailcandor is not open source. It is listed because many people searching for an open-source Resend alternative just want to leave Resend. It accepts Resend-shaped requests at /v1/emails, so you change RESEND_BASE_URL and your key (see the Resend switch guide). Free for 3,000 emails a month, then $0.50 per 1,000. Limits: shared Amazon SES IPs only, US only, access by request, and a newer, smaller company.

MIT vs AGPL: what the licences mean

Postal uses the MIT licence: you can use, modify and ship it, including inside a commercial product, as long as you keep the copyright notice. Plunk and listmonk use the GNU AGPL v3: you can use and modify them freely, but if you modify the code and let people interact with it over a network, you must offer them your modified source. Running an unmodified copy for your own app’s email is the common case. If you plan to build a product on top of either, read the licence properly.

What 100,000 emails a month costs

  • Plunk self-hosted: about $10 in SES fees on the a la carte rate, plus your server.
  • Postal: no per-email fee; you pay for the server and IPs.
  • Plunk hosted: $100.
  • Mailcandor: $39 on the Team plan.
  • Resend: $35 on Pro.

Self-hosting wins on the invoice. Whether it wins overall depends on what an hour of your team’s time costs.

How to choose

Want Resend’s model on your own servers: Plunk on SES. Want to own IPs and receive mail too: Postal. Want newsletters: listmonk. Want to leave Resend with no ops: a managed provider from our Resend alternatives list.

Sources

Competitor facts were checked on 16 November 2026 against these pages. Prices change; check the vendor's page before you decide.

Questions

Is there an open-source alternative to Resend?

Yes. Plunk is the closest: an AGPL-licensed email platform with an API that you can self-host, sending through your own Amazon SES account. Postal is a full self-hosted mail server with an HTTP API under the MIT licence.

Is there a self-hosted alternative to Mailgun or SendGrid?

Postal is the usual answer. It handles incoming and outgoing mail on your own server. You need a dedicated server, Docker, MariaDB 10.6 or later and a provider that allows outbound port 25.

Can listmonk send transactional email?

It has a transactional endpoint, POST /api/tx, but every message must use a preconfigured template, and listmonk sends through SMTP servers you configure. It is built for newsletters and mailing lists.

Is self-hosting email cheaper than Resend?

The software is free, but you pay for servers and, with Plunk, Amazon SES at $0.10 per 1,000 emails. The bigger cost is time spent on IP reputation, blocklists and bounce handling.

Are these projects still maintained?

Yes, as of 16 November 2026. None of the three GitHub repositories is archived. Postal released 3.4.0 in November 2026, Plunk v0.18.0 on 1 November 2026 and listmonk v7.0.0-beta.2 on 10 November 2026.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.