Skip to content
Workbench
Esc
↑↓navigate↵open⌘Jpreview
On this page

Activate and verify email delivery

Review the provider, backlog and hosted invitation and access-addition delivery before approving a production email test.

Complete the read-only review below before requesting approval for a named recipient and a specific hosted test. Production CI is the standard deployment path. Manual deployment, provider/DNS changes, credential rotation and live email tests require explicit approval; an infrastructure plan does not authorize them.

Review configuration and provider access

  1. Resolve production references privately from .env.production, using Workbench Production Deployment → Environment. Compare the exact stage, enable flag, sender, reply-to and frontend origin with the email settings. Confirm the reply mailbox is monitored.
  2. Inspect current stage outputs and deployed Worker metadata using the read-only commands. Acceptance links and logo assets use the frontend HTTPS origin. The webhook uses the API origin plus /email/events; a frontend proxy or a preview origin is not interchangeable.
  3. In the correct Resend account, verify the sender’s exact domain is verified and the stage-owned sending key is restricted appropriately. Keep the runtime key limited to sending. Resend documents HTTP 401 restricted_api_key on non-sending endpoints as a scope restriction, not proof that the sending credential is invalid. Inspect domains and webhooks through an authenticated operator dashboard or a separately authorized management credential; do not broaden or rotate the runtime key just to make those GET requests succeed.
  4. Confirm the enabled webhook subscribes to email.delivered, email.bounced, email.failed and email.complained. Verify its signing secret matches the stage-owned secret privately. A secret binding’s presence does not prove its value matches. Historical successful receipts establish only the configuration in effect at their recorded time.

Review deployment and backlog

Review a read-only Alchemy plan for the intended commit. Check pending committed migrations, the minute cron, shared NativeEngine binding and both workflow registrations. Separate baseline drift from changes introduced by this work. Stop for unexpected resource replacements or role rotation. Follow the existing production workflow for release.

Use a read-only database transaction and the backlog queries. Record stage, counts, oldest pending time and unacknowledged attempts privately. Missing tables mean schema verification is incomplete, not an empty backlog. Review individual affected recipients only in an authorized private session; keep mailbox addresses, message snapshots and invitation URLs out of published docs and logs.

  • Queued invitation jobs can resume when delivery is enabled. Existing manual copy-link invitations have no email job and are not backfilled.
  • Recorded, uncaptured direct organization/conversation additions can become email jobs when the notification consumer starts. Existing memberships and access grants are not backfilled. Their eligibility is rechecked, but activation is not limited to the test recipient.
  • Review uncertain sends, suppressions and unacknowledged attempts before proceeding. Preserve job identities, provider account and frozen messages. Do not clear suppression or mint replacement identities to recover an ambiguous send.

If production is already enabled, a new deployment can start newly introduced consumers immediately. Review their source backlog before release, not after creating the test invitation. Stopping dispatch requires a separately approved configuration change and deployment; an in-flight request may already have been accepted.

Approved end-to-end verification

Record the approved recipient, acting manager, target organization/role, intended release and allowed recovery action before running these steps. Use an isolated test organization and the recipient’s matching Google account where possible. Approval for one test does not authorize arbitrary backlog sends, disruption of unrelated workflows or a manual deployment.

  1. Create one new person invitation in People. Confirm email-queued and a durable job in the approved stage. Save only non-secret invitation/job/provider identifiers in private evidence. Observe the minute cron dispatch and deterministic workflow identity.
  2. Verify provider acceptance, then the signed webhook receipt and People delivery state. Provider acceptance is distinct from delivery; delivered means acceptance by the recipient’s mail server. Inspect the actual HTML/plain-text message, sender/reply-to, expiry, logo, acceptance destination and fallback URL in the approved recipient’s mailbox. Record tested email clients; a local browser preview does not establish client compatibility.
  3. Open the acceptance link as that recipient, complete Google sign-in, accept, and confirm the intended membership and role. Confirm the manager sees the accepted invitation. Returning the same pending invitation must not enqueue another email. Keep copy-link delivery usable.
  4. For a separately approved direct-addition test, add the existing recipient to the named organization or grant the named Client conversation. Confirm one source event and email job, provider acceptance, and the correct Workbench or organization-preserving Shared Work link. Repeating the same addition must not enqueue another message. This test needs its own approved recipient and source action; invitation acceptance is not a direct-addition test.
  5. Exercise the specifically approved hosted recovery scenario on the test job: observe a pending dispatch recover after its lease, or interrupt the test workflow at an agreed checkpoint and observe the existing execution recover. Correlate the same job, workflow and provider identity; verify no duplicate recipient delivery. Do not terminate a shared Worker or manufacture a provider failure against real recipients without separate scope approval.
  6. For an unacknowledged provider attempt, inspect provider history before any further action. Replays must retain the frozen message and idempotency key and remain within the existing retry/window limits. An exhausted or ambiguous job stays uncertain for review. A bounce or complaint must remain terminal and must not be overwritten by a later delivery receipt. Prefer existing provider history or an approved test fixture over intentionally bouncing a real mailbox.

Record each result as verified, failed or not run, with timestamps and the release commit. Keep WB-115 open until the approved live send, acceptance/status and hosted recovery evidence exists. Use Merged after landing on main; Done requires a successful production release and completed issue scope.

Was this page helpful?