23-Apr-2026 — Brevo re-send mode for worker-based forwarding

GitHub #130commit 225a60c


Inbound mail forwarded via the Cloudflare Worker was being quarantined or silently dropped by strict recipient providers (Microsoft 365 and similar) because plain forwarding breaks DKIM and misaligns SPF. This release adds an alternative, admin-selectable Brevo re-send delivery mode that DKIM-signs the onward hop against the group domain.

Why plain forwarding fails

Admin UI

Each committee role picks its delivery mode independently. The legacy Cloudflare forward stays available for low-friction setups; Brevo re-send is marked Recommended for any role that has seen delivery trouble.

Full role-edit screen

The shared-inbox banner at the top confirms which committee members a role fans out to. The delivery-method radios have plain-English helper text and an Active strip showing the live worker.

Selecting Brevo re-send on a fresh role

Not yet active — 3 committee members configured — mail won't be delivered until the Worker is deployed. The Deploy Worker button creates the worker from the Brevo re-send template and wires it to the HMAC webhook.

After Deploy

Worker is live. Update Worker is greyed out because the deployed script matches what the generator would produce today — it self-enables later if a template change introduces drift.

Switching an already-live role back to Cloudflare forward

The radios have diverged from the live worker, so an inline Apply delivery method change CTA appears with a Currently live: Brevo re-send. Click to switch. hint. Nothing is redeployed until the admin clicks it.

After Apply

Worker has been redeployed from the Cloudflare forward template. The Active strip now reads via Cloudflare forward.

How Brevo re-send works

  1. The Cloudflare Worker captures the raw MIME of the inbound message.
  2. It POSTs to /api/cloudflare/email-routing/inbound-mime over HMAC-signed JSON.
  3. NGX verifies the HMAC, then rewrites only the envelope headers it must touch (From, Reply-To, To and the authentication-related headers). HTML body, inline images, attachments, multipart/alternative and boundaries are preserved byte-for-byte.
  4. NGX relays via Brevo SMTP, which DKIM-signs against the group domain.

Because Brevo is the sending authority for the group domain, the onward hop is SPF-aligned and DKIM-valid end-to-end. Rich HTML, inline images and alternative parts render exactly as the sender composed them.

Other fixes shipping with this change