Posthorn, self-hosted mail gateway

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/craigm

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

72

out of 100

Verdict

VALIDATE

high confidence

Competition

No competitor data yet

Trend

No signal yet

A self-hosted email gateway that solves SMTP port blocking and transactional email complexity for self-hosted applications.

The pain

VPS providers block SMTP ports to prevent abuse, forcing developers to either hack together Postfix relays or pay for managed email services. Self-hosted app operators face fragmented email solutions across different platforms (Ghost, Gitea, Mastodon, etc.) with no unified approach.

The gap

No lightweight, provider-agnostic email gateway exists that abstracts away SMTP complexity while supporting multiple transactional email providers AND form submissions with built-in security. Existing solutions are either too heavy (full mail servers) or too narrow (single-provider SDKs).

Build angle

Position as the 'reverse proxy for email', a thin abstraction layer that becomes the standard deployment pattern for self-hosted stacks, similar to how Caddy/Nginx became standard for HTTP. Build community around self-hosted ecosystem (Awesome Self-Hosted, etc.). Consider freemium SaaS version for managed hosting.

Strengths

  • Solves a real, recurring pain point with multiple validation stories (Ghost, Gitea, Mastodon, Umami, Comentario)
  • Minimal footprint (10MB Docker image, single Go binary) makes adoption frictionless
  • Multi-provider support prevents vendor lock-in and appeals to self-hosted philosophy
  • Built-in security features (honeypot, origin checks, rate limiting) add value beyond simple relay
  • Open source under permissive license lowers adoption barriers
  • Founder has already validated through personal use across multiple scenarios

Risks

  • Market size unclear, self-hosted app operators are niche; TAM may be smaller than appears
  • Low monetization ceiling if targeting open-source/self-hosted community; SaaS version cannibalizes core value prop
  • Competitive threat from email provider SDKs improving, or VPS providers relaxing SMTP restrictions
  • Support burden for multiple provider integrations; maintenance risk if founder loses interest
  • No clear go-to-market strategy; discovery/adoption in fragmented self-hosted ecosystem is hard
  • Technical moat is low, competitors could replicate quickly if market validates
  • Form submission feature adds scope creep; unclear if it's core or distraction

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Posthorn, self-hosted mail gateway”.

Open FlyBot