← Back to AI Insights
Gemini Executive Synthesis

Posthorn, a self-hosted email gateway.

Technical Positioning
Self-hosted mail without the mail server. A single Docker container or Go binary between self-hosted apps and transactional email providers, solving common email issues like blocked SMTP ports and providing anti-spam features for static sites.
SaaS Insight & Market Implications
Posthorn addresses a critical infrastructure gap for self-hosters. The blocking of default SMTP ports by VPS providers creates a significant operational hurdle. Posthorn centralizes transactional email delivery, abstracting away provider-specific integrations and offering essential anti-spam features for static sites. This consolidates a fragmented problem space, reducing configuration complexity and dependency on multiple external services or custom Postfix relays. The solution targets developers and small teams managing self-hosted applications (Ghost, Gitea, Mastodon, Umami, Comentario), providing a robust, open-source, and lightweight intermediary. Its value proposition lies in simplifying email delivery, enhancing reliability, and providing security layers, directly impacting developer productivity and system maintainability.
Proprietary Technical Taxonomy
self-hosted email gateway docker container Go binary VPS transactional email provider SMTP ports Postfix relay caddy module

Raw Developer Origin & Technical Request

Source Icon Hacker News May 27, 2026
Show HN: Posthorn, self-hosted mail without the mail server

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

singpolyma3 • May 27, 2026
"Not a mail server"... supports SMTP in and out
graemep • May 27, 2026
The title is inaccurate. Its a self-hosted transactional email gateway, not self hosted email
peter_retief • May 27, 2026
I am running a local mail server using cloudflared tunnels and brevo for sendingpostfix/sendmail/dovecot/ingress setupI am really happy with the setup. (So far)
cuu508 • May 27, 2026
Confusing title, "self-hosted mail" and "self-hosted email gateway" are two quite different things :-/
crimsonnoodle58 • May 27, 2026
> Nobody wants to run a mail server in 2026.We do, and thats why we use Postal [1].The more SaaS applications that self-host email the better. It forces the big guys, ie Microsoft, to improve their blocklists and not lazily block entire ranges. Yes its work contacting them occasionally, but it keeps the internet open. The alternative is an internet where they control it all.1. https://docs.postalserver.io/
basemi • May 27, 2026
Nice project, nice initial subset of options.At work I'm using Apprise (https://appriseit.com/) to deliver notifications.Are you planning to add more services or to limit Posthorn to emails?
ALLTaken • May 27, 2026
I really want to try this, but I'm afraid my DNS will be blacklisted if I do. Can someone guide me and others, if this is the case? E-Mail is the most complex of everything I know in sysadmin/DNS/Server stuff.My current provider since almost two decades without any issues, except speed and storage limitations is all-inkl.com, but I really just use it for email and nothing else, therefore most likely overpriced at ~6€/month.I would love to switch to some VPS/root or anything where I can SSH and install, compile my own services, but something where security is high and support is 24/7 available.
radiospiel • May 27, 2026
An interesting combination of features.Personally, I have used nullmailer in the past to provide a sendmail compatible local install that immediately forwards email to the SMTP server of my choice. Has worked flawlessly.Obviously, that doesn't come with HTML form support, but then I am also not sure I would like the same binary to handle both a HTTP(S) endpoint and email submission :)
npodbielski • May 27, 2026
> Nobody wants to self host email server.I do. Though I am self hosting it to have my personal email, being well... personal. Not for my company so maybe I am not the target.Interesting project though. I always felt missing API to just send emails from some script in my mail server.
throwaway81523 • May 27, 2026
Is Posthorn a reference to W.A.S.T.E.?

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.?
Based on our AI analysis of the original developer request, its primary technical positioning is: Self-hosted mail without the mail server. A single Docker container or Go binary between self-hosted apps and transactional email providers, solving common email issues like blocked SMTP ports and providing anti-spam features for static sites.
How is the developer community reacting to Posthorn, a self-hosted email gateway.?
Yes, we have tracked 43 direct responses and active debates regarding this specific topic originating from Hacker News.
What are the foundational technologies related to Posthorn, a self-hosted email gateway.?
Our proprietary extraction maps Posthorn, a self-hosted email gateway. to adjacent architectural concepts including self-hosted email gateway, docker container, Go binary, VPS.

Engagement Signals

64
Upvotes
43
Comments

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.