cloudflare-email-routing

Configure Cloudflare Email Routing to receive and send emails via Workers.

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-email-routing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-email-routing
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/cloudflare-email-routing
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-email-routing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill consolidates Cloudflare Email Routing knowledge and practical patterns to enable secure, reliable email receiving and sending from Workers, reducing setup time and avoiding common pitfalls.

Core Features & Use Cases

  • Email Receiving: Parse, route, and forward emails using Email Workers with allowlists/blocklists and replies.
  • Sending from Workers: Send emails via the send_email binding to verified destinations.
  • DX and Troubleshooting: Production-ready patterns protect against 8 common issues.
  • DNS & Security: Guidance on MX, SPF, DKIM, and domain verification.

Quick Start

Enable Email Routing in Cloudflare, create and verify a destination address, install dependencies, implement an email worker, and deploy to handle real emails automatically.

Frequently Asked Questions about cloudflare-email-routing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up email routing with Cloudflare Workers?

Email routing with Cloudflare Workers involves enabling Email Routing in Cloudflare, verifying a destination address, installing postal-mime and mimetext dependencies, creating a Worker to handle inbound emails, and deploying via Wrangler. Configure MX records to point to Cloudflare and set up SPF and DKIM for security.

Can I parse and filter incoming emails in Cloudflare Workers?

Yes. Use the postal-mime library to parse inbound email content within Workers, then apply allowlists and blocklists to route or reject messages. The EmailMessage binding provides access to incoming mail, enabling custom filtering logic before forwarding or processing.

How do I send emails from a Cloudflare Worker?

Use the send_email binding in your Worker to send outbound emails to verified destination addresses. Compose messages with mimetext, then invoke the binding to deliver mail. Verified destinations must be set up in Cloudflare before deployment.

What DNS records do I need for Cloudflare Email Routing?

Set up MX records to route mail to Cloudflare, SPF records to authorize Cloudflare as a sender, and DKIM records to sign outbound emails. These DNS prerequisites ensure email deliverability and prevent spoofing when sending from Workers.

What are common pitfalls when using Email Routing with Workers?

Production-ready patterns in this Skill address 8 common issues, including improper DNS configuration, missing DKIM setup, unverified destination addresses, and parsing errors. Review troubleshooting guidance to avoid deployment failures and ensure reliable email handling.

Can I forward and reply to emails using Cloudflare Workers?

Yes. The ForwardableEmailMessage binding enables forwarding received emails and composing replies within Workers. Combine with mimetext for message composition and the send_email binding to route replies back to senders or other destinations.