Choose a shared suppression list when you implement welcome email unsubscribe and bounce handling for a logistics workflow that also needs an auditable compliance-notice record. Callback-only tracking takes less initial integration, but cannot by itself explain the application's decision to allow or block a send.
TL;DR: Persist recipient eligibility and notice intent, check eligibility again before dispatch, and append transport events without treating them as proof that a person read the notice. Choose the ledger when audit reconstruction matters; accept callback-only tracking for a prototype whose scope is observing events.
Consider an illustrative carrier portal. A contact joins an account, receives a welcome email, and later becomes the recipient of a shipment compliance notice. Those messages need separate purposes. Calling both “transactional” doesn't settle the recipient policy.
The reader implementing a Node.js transactional email API needs this boundary before choosing an SDK. The Python example below describes an application contract that can sit behind a Node.js request handler and worker. Integration effort is the decision axis; reconstructing the authorization and delivery evidence is the acceptance test.
How should a welcome email suppression list handle unsubscribe and bounce events?
The proposed invariants are stricter than “the API accepted it.” Each notice has an application notice ID, each dispatch decision records its policy version, and each restriction has a purpose and a reason. A welcome subscription preference and an address-level delivery restriction therefore occupy different fields, even when both prevent a particular welcome email.
Keep the evidence.
Google's sender guidelines distinguish subscription-message unsubscribe requirements from transactional messages and address authentication and unwanted mail. They provide a technical baseline, not a determination that a specific logistics notice satisfies a legal obligation. The approved application policy must define the obligation, recipient, and permitted delivery process.
For this design, separate three questions: may this purpose reach this recipient, can this address currently receive mail under the configured delivery policy, and what evidence exists for this attempt? A durable restriction caused by a permanent delivery failure should not disappear when someone changes a welcome preference. A temporary delivery failure should enter a documented retry policy instead of silently becoming a permanent subscription choice. Consider illustrative shipment LOAD-175, notice NOTICE-042, and policy version 3: if the contact opts out of optional welcome content while the compliance notice is waiting, the worker must evaluate the compliance purpose under that policy rather than copy the welcome decision. If the address has a delivery restriction, that is another decision input. Record both inputs, the recipient reference, and the content version so an investigation can distinguish policy eligibility from deliverability. These identifiers are examples, not measurements or claims about a deployed system.
Acceptance isn't acknowledgement.
Define the application's evidence states explicitly: dispatch permitted, transport accepted, delivery reported, and acknowledgement received represent different claims. Advance the workflow only on the evidence its policy requires.
Decision record: accept the ledger's additional integration work
The accepted option is a shared ledger with an outbox and event history. The rejected option is callback-only tracking, where the application sends first and relies on later events to assemble the story. This comparison concerns application responsibilities, so it requires no commercial transport recommendation.
| Criterion | Shared ledger and outbox | Callback-only records |
|---|---|---|
| Initial integration | Recipient state, durable intent, worker contract | Send call and event ingestion |
| Unsubscribe enforcement | Checks purpose-specific eligibility before dispatch | Event history alone supplies no pre-send decision |
| Bounce handling | Normalized restrictions govern later eligibility | Needs additional state to govern future sends |
| Audit reconstruction | Links policy, intent, decision, attempt, and evidence | Explains reported events; needs records for absent sends |
| Concurrency | Must order state changes and dispatch decisions | Still needs a policy for concurrent preference changes |
| Operational ownership | Schema, reconciliation, and replay behavior | Event ingestion and later reconstruction logic |
The trade-off is storage and operational complexity. A shared ledger is not suitable as a quick event-ingestion experiment when the team has no requirement to reconstruct authorization; callback-only tracking is the smaller implementation for that bounded use case.
For compliance notices, the ledger earns its place only if every dispatch path uses it. Persist the business operation and notice intent in the same database transaction where feasible. Otherwise document the coordination boundary and reconciliation procedure. An outbox row created only after the transport call cannot explain a crash between acceptance and recording.
Record blocked decisions too.
Without that record, a reviewer sees an absent message and must guess whether the recipient opted out, the address was suppressed, or the worker missed the job. Store the reason, policy version, and decision time. Keep the mutable eligibility view separate from decision history so a later preference change cannot rewrite the earlier explanation.
Critical path: claim locally, then record the attempt before dispatch
This Python is an interface sketch, not a runnable transport integration. The store and transport are application-owned interfaces. Their contract matters: claim_if_eligible must atomically evaluate current recipient state and claim a pending intent, persist a blocked decision when appropriate, and return no claim for an already claimed or completed intent.
def dispatch_notice(notice_id, store, transport): # Atomically check purpose, address restrictions, and pending status. claim = store.claim_if_eligible(notice_id) if claim is None: return # Persist before the network call so interrupted attempts stay visible. attempt = store.begin_attempt( claim_id=claim.id, notice_id=notice_id, policy_version=claim.policy_version, recipient_version=claim.recipient_version, ) try: receipt = transport.send( recipient=claim.recipient, content=claim.content, correlation_id=attempt.id, ) except TimeoutError: store.mark_outcome_unknown(attempt.id) return store.record_transport_acceptance( attempt_id=attempt.id, transport_message_id=receipt.message_id, ) A correlation ID supports matching records. It does not promise transport deduplication. The receipt here means acceptance; later authenticated evidence must support any stronger claim.
The timeout path is intentionally unresolved. The remote service may accept a message even when the caller receives no response, so returning the intent directly to “unsent” can create a duplicate notice. Reconcile unknown outcomes using the transport's documented evidence and retry semantics; if that evidence cannot resolve what happened, preserve the uncertainty and follow the approved escalation policy. A crash after acceptance but before the final database write creates the same ambiguity. A worker that stops after begin_attempt also leaves a record requiring investigation, and a failure while recording the unknown outcome cannot be solved by assuming that the network request failed. Recovery must examine durable attempts, not just completed responses. This is the consistency boundary the storage design must expose rather than hide behind a retry loop.
There is another limitation: an unsubscribe can arrive after the local claim but before the remote call. Define the eligibility check as the dispatch decision's ordering point and record the recipient version it used. Later preference changes govern later decisions. A requirement to cancel already authorized work needs a separate cancellation design, with explicit limits for requests the transport has already accepted.
Authenticate incoming events through the transport's documented mechanism, normalize them into application states, and retain investigation evidence under the retention policy. Where a source supplies stable event identifiers, deduplicate using source identity and event ID; otherwise document the source-specific strategy and its limits.
Arrival order isn't causality. Link delayed events to the relevant attempt and change recipient restrictions through explicit transition rules. An unsubscribe clears no bounce history; a successful attempt clears no subscription preference.
Verification makes the integration estimate credible
Before deployment, use a fake transport and deterministic worker scheduling to test opt-out before and after the claim, duplicated events, delayed bounces, worker interruption after sending, and timeout with unknown acceptance. Assert both recipient state and retained audit evidence. Checking only that the send method ran misses the architectural requirement.
For the illustrative shipment, trace one notice from durable intent through its eligibility decision to every attempt and reported event. Also demonstrate why the welcome email was blocked while the compliance notice followed a separately approved policy. The distinction must appear in data, not depend on a template name.
Deployment has failure boundaries too. A worker encountering a policy schema it cannot interpret should stop that work for review. Preserve policy versions during migrations and rehearse event replay against the transition rules. Confirm that reconciliation identifies pending intents and unknown outcomes without dispatching them again indiscriminately.
Track pending-intent age, unprocessed-event age, blocked-decision reasons, and unknown outcomes. Set alert thresholds from the workflow's requirements; there is no proposed universal delivery deadline here.
The integration estimate must include database ownership, retention, on-call investigation, and purpose-specific policy maintenance. Evaluate those responsibilities before optimizing transport charges.
Rejected option and the boundary where it fits
Callback-only tracking fits an event-ingestion prototype with no obligation to reconstruct send authorization. Its advantage is limited implementation scope. Its drawback appears as soon as local unsubscribe choices must govern future sends: the application needs state beyond callbacks and starts assuming the ledger's responsibilities.
Choose the shared ledger for logistics notices whose audit must connect permission, policy, content, and delivery evidence. Accept the integration burden and provide an escalation path when available evidence cannot establish the required result.
A welcome email can share the dispatch machinery. It should not silently define compliance policy.
References
- Google, Email sender guidelines: https://support.google.com/a/answer/81126