Overview of Posthorn
mainPosthorn is a self-hosted, unified outbound mail gateway that sits between your applications and a transactional mail provider (such as Postmark, Resend, Mailgun, AWS SES, or outbound-SMTP). It eliminates the need to integrate multiple mail APIs into every individual app in your stack by providing a single, centralized integration layer.
Ingress Shapes (How apps talk to Posthorn)
- HTTP form ingress: For contact forms or webhooks. Accepts
application/x-www-form-urlencodedandmultipart/form-dataPOST requests. - JSON API ingress: For server-to-server communication (workers, cron jobs). Uses
Authorization: Bearerauthentication and supports idempotency keys. - SMTP ingress: For legacy apps that only support SMTP (e.g., Ghost, Gitea, Mastodon). Posthorn accepts SMTP on your local network (requiring STARTTLS and AUTH PLAIN/client-cert) and forwards it via an HTTP API transport.
Transports (How Posthorn talks to providers)
- Postmark, Resend, Mailgun: Bespoke HTTP clients.
- AWS SES: Uses a bespoke SigV4 implementation.
- Outbound SMTP: Relays via any STARTTLS-capable upstream (e.g., Postfix smarthost).