Cloudflare email deployment

Hosted system mail uses sys.3sln.me, reserving bare-domain addresses for potential user email. MAIL_SENDER_DOMAIN="sys.3sln.me" is explicit in the hosted configuration; account links and branding remain on 3sln.me.

Hosted email uses the Cloudflare Email Sending beta EMAIL.send({from,to,subject,text,headers}) structured binding. It returns a messageId acknowledgement; inbox arrival still needs operational verification. No Resend account, API key, MIME builder or cloudflare:email import is needed. Workers API.

The checked-in production configuration declares EMAIL and sets MAIL_ENABLED="true" for verified-email account setup. The adapter also requires a working binding and an exact HTTPS APP_ORIGIN. The separate local configuration has no email binding. Tests use injected binding doubles; the dry run does not send mail. Do not add a remote email binding to local development for ordinary tests.

Sender policy and connected behavior

Sender Resource Current connection
verify@sys.3sln.me New-account email code and email association confirmation Worker identity mailer; eight-digit setup code or /email/confirm#token=…, same requesting browser session
login@sys.3sln.me Email sign-in confirmation Worker identity mailer; /email/login#token=…, only accounts explicitly enabling email sign-in
notify@sys.3sln.me Generic unread-message reminder Injectable sendReminder resource; hosted dispatcher delivery is still unconnected
accounts@sys.3sln.me Inactivity, suspension and deletion notices Called by the account lifecycle executor (packages/runtime/lifecycle-runner.mjs) only when LIFECYCLE_ENABLED="true" and LIFECYCLE_DRY_RUN="false". Both default to off and dry run, so nothing is sent today. Not yet verified with a real recipient.
security@sys.3sln.me Recovery/passkey/password alerts Finite sendSecurityAlert resource; security event calls remain unconnected

The application chooses fixed sender roles; callers cannot override them. Hosted 3sln.me configuration yields the five addresses above. Wrangler additionally limits the binding with allowed_sender_addresses. The portable identity and notification services continue to accept injected delivery resources. Binding restrictions.

Self-hosted Cloudflare deployments use APP_ORIGIN's hostname as the sender domain by default. Operators may set MAIL_SENDER_DOMAIN to a different onboarded DNS domain; the adapter validates DNS labels and still fixes the local parts to verify, login, notify, accounts and security. Update the deployment's binding allowed_sender_addresses to the corresponding five addresses when using your own domain. BRAND_NAME controls the email subject brand and otherwise defaults to the app hostname. These are operator settings, not per-message caller input. Verification and unsubscribe links remain bound to the app's exact HTTPS origin even when the sender domain differs. Node and other hosts continue to inject their own delivery resource.

New-account verification codes use the shared Bab catalogue in English and Spanish, selected from the setup locale. Other templates, including the lifecycle notices (suspension-warning, deletion-warning, and suspended-notice when purge is disabled), currently use English only. Localized setup mail does not mean reminder or lifecycle mail is localized. A lifecycle notice links to /console?account=…&lifecycle=review and carries no secret; the owner must sign in. Provider acceptance (messageId) is recorded as the attempt's receipt and is not proof of delivery.

Setup codes expire in ten minutes and allow five verification attempts. They verify contact ownership without signing in, bypassing recovery setup or replacing the primary credential. Sending is separately rate limited. Verification links expire in ten minutes. A GET does not sign in or associate an email; the user must confirm. Reminder bodies omit sender names and message content. The fragment unsubscribe link is a manual browser flow, and the adapter sends List-Unsubscribe without claiming RFC 8058 one-click support. Cloudflare controls Message-ID; the adapter does not set it. Email headers.

Setup the account owner must complete

Email Sending onboards each subdomain separately; check the exact domain under Compute → Email Service → Email Sending. Cloudflare subdomain onboarding.

  1. Confirm that the Cloudflare account has Workers Paid and can access Compute → Email Service → Email Sending beta, and that 3sln.me uses Cloudflare DNS. Email Sending is available on Workers Paid; verified-destination Email Routing sends alone are free on all plans. Service availability.
  2. Choose Onboard Domain for sys.3sln.me. Review the proposed bounce MX, SPF, DKIM and DMARC records, including existing mail policy, before authorizing onboarding. Wait for the domain to become ready. Cloudflare onboarding.
  3. Confirm this account's Email Sending supports application mail to ordinary user recipients. Email Sending domain onboarding is the intended service for this app; old Email Routing send bindings limited to manually verified destination addresses cannot support public signup. The binding reference still describes verified destinations, so confirm actual account capability before enabling public email flows. The deployed binding deliberately restricts senders and does not hardcode user destinations. Email Sending overview, binding reference.
  4. After onboarding, set MAIL_ENABLED="true" only in the intended configuration for explicitly authorized delivery verification and deploy through the gated workflow. Keep RELEASE_READY="false" until the complete release gates pass. Check all five allowed addresses against domain policy; outbound sender authorization is based on the onboarded domain. Inbound support mailboxes/routing are separate work.
  5. Perform an explicitly authorized recipient test for association and sign-in, including delivery, spam placement, expired links and scanner-safe confirmation. Validate suppression/bounce handling and sending quotas for that account. Keep release status and feature claims provisional until the end-to-end checks pass.

Failure and retry limits

The adapter rejects malformed envelopes, control characters, unknown notice types and substituted link origins before calling the binding. Provider failures become a generic error with a known code only; the adapter does not log recipient addresses, tokens, bodies or raw provider errors.

sendReminder accepts the existing caller payload, including its retry key, but Cloudflare's documented structured API offers no idempotency argument. A retry can send duplicate mail, especially after provider acceptance followed by a lost acknowledgement. Stable headers or message IDs do not establish exactly-once delivery. Production dispatch needs a durable delivery ledger and an explicit duplicate-tolerant retry policy; neither the binding nor its acknowledgement resolves that ambiguity.