Skip to content

posta

Self-hosted email API for developers who send, receive and relay mail

Copyleft (OSI) · AGPL-3.0

Listed by , founder & editor

77

Health

Thriving

Overview

Stars

649

Last commit

3 days ago

Nov 2026

Repository age

8 months

since Mar 2026

Latest version

v0.20.1

Nov 2026

Contributors

–

2 active in 90 days

Releases

13

last 12 months

Docker pulls

417

goposta/posta

Language

Go

Posta is a self-hosted email platform written in Go. One HTTP API handles outbound sending, inbound receiving and SMTP relay, so you can run your own delivery pipeline instead of paying a hosted provider.

Outbound mail supports templates, localization, campaigns, subscriber lists, bounce and complaint handling, scheduled sending and delivery analytics. Jobs run asynchronously through Redis and Asynq, with automatic retries and priority queues. Inbound mail arrives through a built-in SMTP receiver with TLS or an HMAC-verified webhook. Posta parses messages and attachments and forwards them to your app by webhook. Existing SMTP clients can point at Posta and move to the API later.

It also accepts website form posts with spam checks and rate limits, and includes a live chat widget. It ships as a Docker image and is licensed AGPL-3.0. It is a self-hosted alternative to Mailgun and SendGrid. It has no dedicated IP management, no drag-and-drop editor and no multi-step automation workflows.

Who it's for

Developers sending transactional email from their own apps

A single REST API covers sending, templates, retries and webhooks without a per-message vendor bill.

Skip if: You need dedicated IP management or a managed deliverability team.

Teams migrating off SendGrid or Mailgun gradually

The SMTP relay lets existing clients keep working while you move calls to the HTTP API.

Skip if: You rely on A/B testing or multi-step automation workflows.

Small sites that want contact forms and inbound mail in one tool

Form endpoints, inbound parsing and a dashboard for replies share the same domains and suppression list.

Skip if: You want a visual drag-and-drop email editor.

The problem it solves

Hosted email APIs charge per message and keep your sending data on their servers. Posta lets you run sending, receiving and relay on your own infrastructure through one API.

Strengths

  • Handles outbound, inbound and SMTP relay through one HTTP API
  • Async delivery with Redis and Asynq, retries and priority queues
  • Inbound SMTP receiver with TLS and HMAC-verified webhook ingest
  • Built-in email address verification: syntax, MX, disposable and role checks
  • Docker image available, with 13 releases in the last year

Trade-offs

  • AGPL-3.0 license brings network copyleft obligations if you modify it
  • No dedicated IP management
  • No visual drag-and-drop editor
  • Needs Redis and your own SMTP for delivery, so deliverability is on you

posta replaces

Self-host posta

Self-hostable
Yes
Docker image
goposta/posta
Docker Compose
The repository ships a Compose file

Quick start

curl -X POST http://localhost:9000/api/v1/emails/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <hello@example.com>",

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Posta free?

Yes. It is open source under AGPL-3.0 and you run it yourself.

Can I self-host it with Docker?

Yes. A Docker image is available and the project is built for self-hosting.

Which products does it replace?

It is positioned as a self-hosted alternative to SendGrid, Mailgun and Postmark.

Can it receive email as well as send it?

Yes. It has a built-in SMTP receiver and webhook ingest, and forwards parsed messages and attachments to your application.

Can my existing SMTP client use it?

Yes. Point the client at Posta's relay and the mail goes through the same pipeline as API sends.

Other Mailgun alternatives

Compare all 4 Mailgun alternatives →

Similar tools in Email software

nitromta

Email software

Self-hosted mail delivery engine with an Amazon SES v2 API, for teams sending from their

126 2 13 days ago Active Apache-2.0

Evolution

Email software

Linux desktop email client with calendar and contacts for Outlook-style workflows

90 103 3 days ago Thriving GPL-2.0+ and GFDL-1.3

Replaces Microsoft Outlook