Skip to content

Cloudflare Email Delivery

Send and receive Frappe and ERPNext email through Cloudflare, with no SMTP or IMAP provider in the loop.

Frappe & ERPNextActiveMIT
View on GitHub (opens in a new tab)
Platform

Frappe & ERPNext

License
MIT
Status
Active
Part of

Cloudflare Email

Running email for an ERP usually means SMTP credentials, IMAP polling, and a mail provider that may or may not deliver. Cloudflare Email Delivery replaces all of that for Frappe and ERPNext sites whose domains live on Cloudflare. Outgoing mail goes straight to the Cloudflare Email Sending API, and incoming mail arrives from the Cloudflare Email Relay as a signed HTTPS push into Frappe's own inbound pipeline. It's the Frappe adapter in Avunu's Cloudflare Email suite.

Features

  • No SMTP to manage. An Email Domain holds a Cloudflare account ID and API token instead of server settings, and saving verifies the token.

  • No IMAP polling. Each incoming account gets a webhook URL and secret. Messages are verified by HMAC signature and handed to Frappe's InboundMail, so Append To, auto-replies, attachments, and notifications behave as usual.

  • Threading that survives Cloudflare. Frappe keeps its own Message-ID in References, so replies still land on the right document.

  • Rate limits and transient errors are retried; bounces Cloudflare rejects up front fail the queue entry with a reason.

  • Mixed setups work: accounts on other domains keep SMTP or Frappe Mail.

Getting started

You need Frappe 16, a Cloudflare account on the Workers Paid plan, and a domain onboarded for Email Sending and Email Routing. The README walks through sending, receiving, and the webhook contract.

Related projects

All open-source projects

A multi-tenant Cloudflare Email Routing Worker that stores every inbound message and pushes it to the right Odoo or Frappe instance with durable retries.

Odoo 18 modules that send and receive email through Cloudflare and run two-way Twilio SMS and MMS conversations inside Discuss.

AGPL-3.0-or-laterGitHub

Routes all WordPress email through the Cloudflare Email Sending API and keeps a searchable log of every message, with no settings screen.

Need help with it?

Need this implemented? We run it for clients as part of managed infrastructure, and our ERPNext implementation team can wire it into your site.