Repository navigation
Send production mail through Cloudflare - #1966
Merged
Merged
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR1966Version: 🤖 Updated on each push. |
This was referenced Oct 26, 2026
Merged
Merged
4 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of epic #1893, phase 2 (#1895): the production flip.
backend/wrangler-sccn.toml: the production vars setEMAIL_PROVIDER = "cloudflare"andEMAIL_FALLBACK = "resend". Account mail and sign-in codes go through thesend_emailbinding (already deployed in 0.10.24, restricted to noreply@ and support@). A refusal for a quota or account-level reason (RESEND_FALLBACK_CODES) is retried once through Resend; every other refusal is final, so a sign-in code is never sent twice. Broadcasts go through the outbox Queue, which backs off on a limit refusal.backend/test/email-provider-vars.test.tspins it: both Workers send through Cloudflare with a declaredEMAILbinding, and only production falls back.Staging has sent through Cloudflare since 2026-10-23 (SPF, DKIM and DMARC pass). nemar.org was onboarded for Email Sending on 2026-10-24.
Not affected: the self-hosted secrets manager sends its own mail through Resend SMTP, which stays until Phase 7.
Test plan
bun teston the email provider, outbox, broadcast and new config tests (104 pass)dkim=pass header.d=nemar.org