
Cloudflare Email Sending が Free プランで使えるようになったので試してみた
はじめに
2026年11月24日に、Cloudflare Email Sending が Workers Free プランで使えるようになったことが発表されました。
Workers Free のアカウントでも、送信ドメインをオンボードすれば、verified destination addresses へメールを送れます。
今回は Free のアカウントで送信ドメインをオンボードし、Workers binding と REST API の両方から送信した結果を紹介します。
検証環境
- プラン: Workers Free(Workers Paid の購読なし)
- 送信ドメイン: example.com(Cloudflare の DNS、Free Website プラン)
- DMARC 設定: 2024年3月に設定済み(
p=reject) - wrangler: 4.168.0
- 送信先: アカウントに登録済みの verified destination address
- API トークン: Email Sending Write を含むもの
送信先の追加と確認の手順は、次のドキュメントにあります。
送信ドメインのオンボード
送信ドメインのオンボードは、ダッシュボードか API で行えます。ダッシュボードの手順は次のドキュメントにあります。
今回は API で行いました。ゾーンに対して、送信ドメインの名前を指定して POST します。
curl -X POST "https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/email/sending/subdomains" \
-H "Authorization: Bearer <API_TOKEN>" \
-H "Content-Type: application/json" \
--data '{"name": "example.com"}'
応答は次のとおりでした。
{
"result": {
"id": "<ID>",
"tag": "<ID>",
"name": "example.com",
"enabled": true,
"preview_enabled": true,
"return_path_domain": "cf-bounce.example.com",
"dkim_selector": "cf-bounce",
"drop_suppressed_recipients": false,
"created": "2026-11-25T16:52:49.26357Z",
"modified": "2026-11-25T16:52:49.26357Z"
},
"success": true,
"errors": [],
"messages": []
}
ダッシュボードの Email Sending には、Workers Free 向けの案内(verified destination addresses にのみ送信できる)が表示されました。オンボードした送信ドメインは、Status が Enabled、DNS records が Configured でした。

追加される DNS レコード
オンボード前後でゾーンの DNS レコードは35件から40件になりました。増えたのは、cf-bounce の MX 3件、cf-bounce の TXT(SPF)1件、cf-bounce._domainkey の TXT(DKIM)1件の計5件です。
_dmarc は、ドメインに DMARC レコードが設定済みだったため、追加も変更もありませんでした。
オンボード後に、リゾルバに 1.1.1.1 を指定して、各レコードを dig で取得しました。
# dig @1.1.1.1 +short MX cf-bounce.example.com
38 route2.mx.cloudflare.net.
55 route1.mx.cloudflare.net.
77 route3.mx.cloudflare.net.
# dig @1.1.1.1 +short TXT cf-bounce.example.com
"v=spf1 include:_spf.mx.cloudflare.net ~all"
# dig @1.1.1.1 +short TXT cf-bounce._domainkey.example.com
"v=DKIM1; h=sha256; k=rsa; p=<DKIM_PUBLIC_KEY>"
# dig @1.1.1.1 +short TXT _dmarc.example.com
"v=DMARC1; p=reject; rua=mailto:<id>@dmarc-reports.cloudflare.net"
Workers binding での送信
Worker から送るには、wrangler の設定に send_email binding を追加します。binding 名は EMAIL としました。
wrangler.jsonc
{
"name": "email-sending-free-demo",
"main": "src/index.ts",
"compatibility_date": "2026-11-01",
"send_email": [
{
"name": "EMAIL"
}
]
}
送信元、verified destination address、未検証の宛先は --var で渡します。Workers Free のアカウントでも、send_email binding を設定した Worker をデプロイできました。
wrangler deploy \
--var "FROM:alerts@example.com" \
--var "TO:<VERIFIED_ADDRESS>" \
--var "TO_UNVERIFIED:<UNVERIFIED_ADDRESS>"
src/index.ts
// FROM / TO / TO_UNVERIFIED は wrangler の --var で渡す(記事ではダミー値)
interface Env {
EMAIL: SendEmail;
FROM: string; // 例: alerts@yourdomain.com(オンボード済みの送信ドメイン)
TO: string; // verified destination address
TO_UNVERIFIED: string; // verified ではない宛先
}
export default {
async fetch(request: Request, env: Env): Promise<Response> {
const url = new URL(request.url);
const to = url.pathname === "/unverified" ? env.TO_UNVERIFIED : env.TO;
try {
const result = await env.EMAIL.send({
from: env.FROM,
to,
subject: "Disk usage above 90%",
text: "Disk usage on db-1 is above 90%.",
});
return Response.json({ ok: true, messageId: result.messageId });
} catch (error: any) {
return Response.json(
{ ok: false, code: error.code, message: error.message },
{ status: error.code === "E_RECIPIENT_PLAN_RESTRICTED" ? 403 : 500 },
);
}
},
} satisfies ExportedHandler<Env>;
デプロイした Worker の URL にアクセスすると、次の応答が返りました。
curl -i "https://email-sending-free-demo.<SUBDOMAIN>.workers.dev/"
HTTP/2 200
{"ok":true,"messageId":"<MESSAGE_ID_WORKERS@example.com>"}
send() の戻り値は messageId を持つオブジェクトです。応答の ok は Worker のコードが付け加えた値です。
REST API での送信
Workers を使わずに、REST API でも送れます。エンドポイントと認証方法は、次のドキュメントにあります。
curl -X POST "https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/email/sending/send" \
-H "Authorization: Bearer <API_TOKEN>" \
-H "Content-Type: application/json" \
--data '{
"from": "alerts@example.com",
"to": "<VERIFIED_ADDRESS>",
"subject": "Disk usage above 90% (REST)",
"text": "Disk usage on db-1 is above 90%."
}'
応答は次のとおりでした。
{
"success": true,
"errors": [],
"messages": [],
"result": {
"message_id": "<MESSAGE_ID_REST@example.com>",
"delivered": [],
"queued": ["<VERIFIED_ADDRESS>"],
"permanent_bounces": [],
"suppressed_recipients": []
}
}
宛先は、delivered ではなく queued の配列に入りました。
受信したメール
verified destination addresses に登録した Gmail のアドレスで、2通とも受信できました。Workers binding で送ったメールの認証結果は、次のとおりです。
Return-Path: <bounces@cf-bounce.example.com>
Authentication-Results: mx.google.com; dkim=pass header.i=@example.com header.s=cf-bounce; dkim=pass header.i=@cloudflare-email.net header.s=cf2024-1; spf=pass (google.com: domain of bounces@cf-bounce.example.com designates 104.30.8.36 as permitted sender) smtp.mailfrom=bounces@cf-bounce.example.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=example.com
From: alerts@example.com
Message-ID: <MESSAGE_ID_WORKERS@example.com>
DKIM は、オンボードで追加された cf-bounce のセレクターによる署名と、cloudflare-email.net の署名の2つが pass でした。SPF は cf-bounce サブドメインの Return-Path で pass し、DMARC も pass でした。REST API で送ったメールも、同じ認証結果でした。
同じ内容の2通を、verified destination addresses に登録した SES の宛先にも送って受信し、ヘッダーを比べました。Gmail と SES の判定は同じでした。
| 項目 | Gmail | SES |
|---|---|---|
| SPF | pass(bounces@cf-bounce.example.com) |
pass(同じ envelope-from) |
| DKIM | pass が2つ(example.com と cloudflare-email.net) |
pass が2つ(同じ署名元) |
| DMARC | pass(p=REJECT、dis=NONE) |
pass |
送信の記録
Email Sending には、送信の記録が残ります。ダッシュボードの Activity log と同じデータは、GraphQL Analytics API の emailSendingAdaptive で取得できます。
POST https://api.cloudflare.com/client/v4/graphql
query ($zoneTag: string!, $start: Time!, $end: Time!) {
viewer {
zones(filter: { zoneTag: $zoneTag }) {
emailSendingAdaptive(
filter: { datetime_geq: $start, datetime_leq: $end }
limit: 50
orderBy: [datetime_DESC]
) {
datetime from to subject status eventType sendingDomain
errorCause errorDetail dkim dmarc spf isSpam
}
}
}
}
Gmail 宛ての2通の記録が確認できました。
{
"data": {
"viewer": {
"zones": [
{
"emailSendingAdaptive": [
{
"datetime": "2026-11-25T16:56:32Z",
"dkim": "none",
"dmarc": "none",
"errorCause": "",
"errorDetail": "",
"eventType": "newEmailSending",
"from": "alerts@example.com",
"isSpam": 0,
"sendingDomain": "example.com",
"spf": "none",
"status": "delivered",
"subject": "Disk usage above 90% (REST)",
"to": "<VERIFIED_ADDRESS>"
},
{
"datetime": "2026-11-25T16:56:31Z",
"dkim": "none",
"dmarc": "none",
"errorCause": "",
"errorDetail": "",
"eventType": "newEmailSending",
"from": "alerts@example.com",
"isSpam": 0,
"sendingDomain": "example.com",
"spf": "none",
"status": "delivered",
"subject": "Disk usage above 90%",
"to": "<VERIFIED_ADDRESS>"
}
]
}
]
}
},
"errors": null
}
ドメインの Overview では、SES 宛ての2通を含めて、直近7日の Total sent が 4、Delivered が 4 と表示されました。

未検証の宛先への送信
Workers Free で送れる宛先は、verified destination addresses に限られます。先ほどの Worker は、/unverified にアクセスすると、verified destination addresses に無い宛先へ送ります。送信ドメインをオンボード済みの Workers Free のアカウントでこれを実行すると、send() がエラーを投げました。
curl -i "https://email-sending-free-demo.<SUBDOMAIN>.workers.dev/unverified"
HTTP/2 403
{"ok":false,"code":"E_RECIPIENT_PLAN_RESTRICTED","message":"destination address is not a verified address; the account's plan allows sending only to verified addresses"}
code と message は send() が投げたエラーの値です。HTTP 403 は、code が E_RECIPIENT_PLAN_RESTRICTED のときに返すよう Worker 側で決めたステータスです。エラー処理では、この code でプランによる宛先の制限を判別できます。
まとめ
Workers Free プランのアカウントでも、送信ドメインをオンボードすれば、verified destination addresses に登録済みのアドレス宛てにメールを送信できました。
送信先が決まっている場合は、そのアドレスやメーリングリスト、エイリアスを verified destination addresses に登録して事前に承認しておけば、Workers Free プランの Worker からメールを送信できます。
Changelog によると、任意の宛先へ送るには Workers Paid が必要です。特定のメールアドレスにレポートメールを送りたい場合は、Workers Free プランでも使えるようになった Email Sending を試してみてください。








