Posthorn, self-hosted mail gateway
Details
- External ID
- 48289624
- Source
- HN
- Company
- —
- Product
- Posthorn, self-hosted mail gateway
- Website domain
- github.com
- Launched
- May 27, 2026
- Cohort
- —
- Upvotes
- 83
- Upvotes percentile
- 0.8877221324717286
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
Introducing Posthorn, a self hosted email gateway. One docker container (or Go binary) between every self hosted app on your VPS and your transactional email provider. Set up Posthorn once, point your apps to it, done.I was trying to deploy Ghost on a DigitalOcean droplet and found that DO and many different VPS services have started to block the default SMTP ports to try to combat the various types of abuse they get. To actually configure my app, I had to hack together a Postfix relay.In another project, I had a static site which had a contact form, but my free Formspree account was occasionally hitting usage limits and I desperately wanted some of the anti-spam features they had gated behind their paid accounts so I put together a caddy module to catch HTTP POSTs and bounce them to my provider.I kept bumping into these same email issues. Many of the services I wanted to host (Gitea, Mastodon, Umami, Comentario) ran into the same limitations. This felt like a really common issue that had no good solution.Posthorn is what I built to solve this. It's a small Go binary (or 10 MB docker image) that sits between your self hosted apps and your transactional email provider of choice (shipping with support for Postmark, Resend, Mailgun, Amazon SES or an outbound SMTP relay). It also accepts POSTs from HTML forms to support static site needs while adding security layers such as honeypot fields, origin checks and IP rate limiting. There's also a JSON HTTP API that supports Bearer auth for backend scripts or cron jobs that just want a /send endpoint.I now use this personally in multiple scenarios and I've spent a lot of time beating this up and testing against what I can validate. I'd love to hear how this might be useful for you, what breaks and any feedback you might have. It's open source under Apache 2.0 and I'd love contributions. I'm planning to support and grow this for the long haul.Code: https://github.com/craigmccaskill/posthornDocs: https://posthorn.dev/Longer write up: https://craigmccaskill.com/introducing-posthorn/Previous HN discussion on the exact issue I'm trying to solve: https://news.ycombinator.com/item?id=43620318
Enrichment
- Theme
- email infrastructure and inbox utilities
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Commercial product
- Normalized one-liner
- self-hosted mail gateway
- Manually corrected
- False
Could you build this?
Yes It is a lightweight SMTP proxy and gateway container in Go that forwards outgoing emails to transactional email APIs like SendGrid, Postmark, or AWS SES.
Discussion
20 comments analyzed.
Competitors mentioned: postfix-sendgrid and postfix-mailgun, ProtonMail Bridge, Parsedmarc, Apprise, Unix mail utilities (mailx/mail)
Concerns raised: Operational costs of running a mail server, DMARC aggregate report handling not included, Complexity of SMTP configuration (TLS vs STARTTLS, port selection, username formats)
Feature requests: Webhook support for multi-channel notifications, HTML email support, Email plus webhook support per request, Built-in standardized API for mail sending across self-hosted services
Competitors
Other products that read as similar to this one — 203 launches clear the similarity bar, closest 8 shown.
Attention rank: #31 of 204 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 208 days after the earliest competitor.
- VaultSandbox · hn · 2026-01-06 · 58 upvotes · similarity 0.53
- Self-hosted email server for 2026 · hn · 2026-01-03 · 7 upvotes · similarity 0.49
- Alien · hn · 2026-04-20 · 106 upvotes · similarity 0.45
- TheLittleHost · hn · 2026-03-16 · 7 upvotes · similarity 0.44
- SMTP Tunnel · hn · 2026-01-07 · 140 upvotes · similarity 0.44
- fmsg · hn · 2026-04-20 · 5 upvotes · similarity 0.43
- Chainstack Self-Hosted, hosting your own blockchain nodes made simple · hn · 2026-06-21 · 9 upvotes · similarity 0.43
- Posthaste · ph · 2026-09-21 · 2 upvotes · similarity 0.42
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.