Skip to content

Incoming mail, already parsed.

Point your domain at Drin. Every message reaches your webhook as JSON, with the new part of the reply as clean text.

Raw email is mostly what was already said.

MIME, quoted history and signatures, around the one line you want. Drin takes it apart and posts you the rest.

  • Clean text

    Quoted history, signatures and mobile footers are cut, up to 32 KB. truncated says when it was cut short. Hidden text comes out too and the original is kept, though that can't catch every trick.
  • Sender checks and threads

    SPF, DKIM and DMARC results come with each message, verified says whether the sender was, and a reply is threaded with the one it answers.
  • Checked before your agent reads it

    With Drin Airlock on for a key, each email gets a risk level, low, medium or high. Risky mail still lands, with a warning your agent reads first. No check catches every attack.

A handler in twenty lines.

Four calls to set it up. No public URL? Read the same events from the stream or a long poll.

# Turn on receiving. The reply has the one MX record to publish.
PATCH /v1/domains/:id/receiving

# Pick the addresses, or set catchAllInboxId for everything else.
POST /v1/inboxes

# Subscribe. The signing secret is shown once.
POST /v1/webhooks
{ "url": "https://acme.dev/hooks/drin", "eventTypes": ["inbound_received"] }

# Test the real path, marked testMode, before any real mail.
POST /v1/inbound/simulate

Stop parsing MIME.

Try it on an instant inbox first, with no DNS.