Catalog / Cloudflare Developer Platform
Email Service - Configure Email Routing addresses with Wrangler
20 days agoOriginal notes
Wrangler 4.113.0 and later can manage the Email Routing rules that send inbound email to a Worker. Define literal recipient addresses or an apex-domain catch-all with the top-level addresses field:
{
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "my-worker",
"main": "src/index.ts",
// Set this to today's date
"compatibility_date": "2026-09-25",
"addresses": [
"support@example.com",
"*@example.com"
]
}name = "my-worker"
main = "src/index.ts"
# Set this to today's date
compatibility_date = "2026-09-25"
addresses = ["support@example.com", "*@example.com"]
When you deploy the Worker or its triggers, Wrangler shows the planned Email Routing changes and reconciles the managed rules. Purely additive changes apply automatically. Deletions and rule takeovers require confirmation in an interactive environment.
Refer to Email routing rules and addresses for configuration and deployment details.