Dashboard

Cloudflare Email Sending

Use Cloudflare Email Sending as a second provider, with your own account and token. Replies come back through Email Routing.

Cloudflare Email Sending works like a Resend key: you connect your own account, the mail is billed by Cloudflare, and brands on it share the same inbox. It's in beta at Cloudflare.

  1. 1

    Onboard the domain in Cloudflare.

    Open Compute → Email Service → Email Sending and onboard your domain. It must use Cloudflare DNS, and Email Sending needs the Workers Paid plan.

  2. 2

    Create an API token.

    At dash.cloudflare.com/profile/api-tokens, give it Account → Email Sending: Edit. Optional: Queues: Edit for delivery and bounce events, Zone: Read and Email Routing: Edit to receive replies in BoostMails.

  3. 3

    Connect it.

    In Settings → Sending accounts → add Cloudflare Email Sending account, paste the Account ID (from the dashboard sidebar) and the token, then confirm the onboarded domains.

Receive replies#

For each confirmed domain, BoostMails can turn on Cloudflare Email Routing for the zone and forward all its mail (catch-all) to your private BoostMails address. This replaces the zone's current MX, so it only runs after you confirm.

Delivery events#

Cloudflare publishes delivery, bounce and complaint events to a Queue in your own account. Create one with an HTTP pull consumer, subscribe it to your domain, and paste its id. BoostMails pulls it every 5 minutes. Without it, statuses stay at “sent”.

Terminal
npx wrangler queues create boostmails-email-events
npx wrangler queues consumer http add boostmails-email-events
npx wrangler queues subscription create boostmails-email-events \
  --source email.sending --zone-id <ZONE_ID> --domain yourbrand.com \
  --events message.delivered,message.deferred,message.bounced,message.failed,message.rejected,message.complained
npx wrangler queues info boostmails-email-events   # copy the queue id
!

Cloudflare has no idempotency key. If a send gets no answer, BoostMails marks it unknown and never retries it automatically, so a customer never gets the same email twice. Check it in Failed and retry by hand if needed.