Shell-script-installed mail server bundle.
iredmail is self-host. MailKite is managed — no server to run.
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 iredmail: 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 }));
} iredmail is a long-running (since 2007) shell-script-installed mail server bundle: a Bash installer for Debian/Ubuntu/CentOS that sets up Postfix, Dovecot, SOGo/Roundcube, Amavisd/SpamAssassin, and Fail2ban. A paid iredAdmin-Pro adds per-domain admin features.
Free OSS + paid iredAdmin-Pro
Point a domain, drop in a webhook URL, and send your first email in minutes. Unlimited domains, no credit card.