n8n

Fair-code workflow automation — connect anything to email.

How MailKite fits

Works with MailKite — point n8n's email nodes at MailKite's SMTP relay, or trigger on a MailKite inbound webhook. See /docs/integrations/n8n.

Receive email into n8n via MailKite

A minimal, copy-paste starter. Swap in your own domain and API key.

webhook.ts
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 n8n: 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 }));
}
Read the inbound webhooks guide

n8n is an extensible, node-based workflow automation platform (fair-code) that connects services through visual workflows. Its email nodes can send via SMTP and trigger workflows on inbound mail, making it a flexible choice for automating mail-driven processes alongside the rest of your stack. Self-host or use the managed cloud.

Key features

Pricing model

Open source (self-host) + managed plans

Open source

Sustainable Use License

View repository

Questions about n8n

Can n8n send email via MailKite?

Yes — set n8n's SMTP node to smtp.mailkite.dev with your API key as the password.

Can n8n react to inbound MailKite email?

Yes — set a MailKite inbound route to POST to your n8n webhook URL and build a workflow on the JSON event.

Related

Similar tools

Try MailKite alongside n8n.

Point a domain, drop in a webhook URL, and send your first email in minutes. Unlimited domains, no credit card.