Posthorn, a self-hosted email gateway.
Raw Developer Origin & Technical Request
Hacker News
May 27, 2026
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: github.com/craigmccaskill/po... posthorn.dev/Longer write up: craigmccaskill.com/introducing-posth... HN discussion on the exact issue I'm trying to solve: news.ycombinator.com/item
Developer Debate & Comments
Frequently Asked Questions
Market intelligence mapped to Posthorn, a self-hosted email gateway..
What is the technical positioning of Posthorn, a self-hosted email gateway.?
How is the developer community reacting to Posthorn, a self-hosted email gateway.?
What are the foundational technologies related to Posthorn, a self-hosted email gateway.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like Apache 2.0 and VPS by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics