Self-hosted transactional mail server (send-focused).
Postal is a self-hosted send server. MailKite is managed send + receive on Cloudflare's network — no server to operate.
A minimal, copy-paste starter. Swap in your own domain and API key.
import { verifyWebhook } from "@mailkite/client";
// MailKite POSTs every inbound email at your domain as JSON.
// Point a route at this handler in the MailKite dashboard.
export default async function handler(req: Request) {
const raw = await req.text();
const sig = req.headers.get("x-mailkite-signature") ?? "";
// Reject anything not signed by your webhook secret
const ok = await verifyWebhook(sig, raw, process.env.MK_WEBHOOK_SECRET!);
if (!ok) return new Response("bad signature", { status: 401 });
const email = JSON.parse(raw);
// Route into Postal: open a ticket, create a task, store a record
await routeIntoName(email); // email.from · email.subject · email.text
return new Response(JSON.stringify({ ok: true }));
} Postal is an open-source mail server designed for transactional sending that you self-host. It offers an HTTP API, webhooks, and per-organization sending, aimed at teams that want to own their sending infrastructure rather than use a managed service. Operation and deliverability are on you.
Open source (self-host)
Postal is primarily a transactional sending server; inbound receiving is limited compared to outbound.
Postal is self-hosted sending you operate. MailKite is managed send + receive with one quota and no server to run. See /alternatives/postal.
Point a domain, drop in a webhook URL, and send your first email in minutes. Unlimited domains, no credit card.