| Evidence needed for a seller's new-order notice | Pick this approach when | Boundary to record |
|---|---|---|
| Permission to use a sending domain | Domain ownership verification before enabling sends | Ownership alone does not establish message authentication |
| Authenticated mail using the visible sender domain | SPF or DKIM with DMARC alignment | Authentication does not prove inbox placement |
| An explanation of what happened after submission | A durable event ledger, bounce suppression, and bounded API polling | Acceptance does not prove that the seller read the order |
Short answer: Start with domain verification and aligned authentication for transactional email. Add a durable bounce ledger and suppression checks before sending each marketplace order notice. In Node.js, poll your delivery adapter for evidence when callbacks are unavailable or need reconciliation. Keep the order's business state separate from the email's transport state.
The outcome is specific: a logistics marketplace needs to notify a seller about a new order and later explain what happened. A submission receipt is useful evidence. Calling it proof of receipt by a human creates a claim the transport cannot support. This field guide treats each control as an answer to a different audit question, then implements the evidence-processing boundary.
Which evidence answers the compliance question?
Pick domain verification when the question is who may send using the marketplace's domain. Complete the sending service's ownership challenge and retain its verification result. The challenge's exact record and value belong to that service; do not guess them or reuse example DNS values in production. Keep an owner and a review date with the evidence.
Pick aligned authentication when the question is whether the message authenticates as the domain shown to the seller. DMARC evaluates alignment between the visible From domain and an authenticated SPF or DKIM domain. A passing aligned mechanism can satisfy DMARC; having both mechanisms configured provides two paths, but neither bypasses alignment. RFC 7489 defines these relationships.
Pick lifecycle evidence when the question is what happened to this particular order notice. An append-only record of submission, delivery reports, and failures lets an operator trace a message without inferring its state from a dashboard badge. Suppression belongs here too: a permanent recipient failure should inform the next sending decision. This is an application policy to implement explicitly, with documented reasons and a controlled release process.
Keep the distinctions.
These choices usually accumulate. A small marketplace can start with a minimal ledger rather than a separate analytics platform, provided its message identifiers, retention rules, and suppression decisions remain queryable. That reduces moving parts. It also puts the responsibility for reconciliation and evidence access on the application team. An audit requirement for a signed acknowledgment would require another workflow beyond transport reports.
Connect domain verification to SPF, DKIM, and DMARC
SPF authorizes hosts to use a domain in SMTP identities. DKIM signs selected message headers and the body using a domain's key. DMARC connects a successful authentication result to the domain in the visible From field. Consult RFC 7208, RFC 6376, and RFC 7489 for the respective protocols.
For a proposed sender such as orders@notify.marketplace.example, inventory the systems that send for the domain before editing DNS. Publish the actual SPF authorization and DKIM public key supplied by the sending system. Then check a received test message's authentication results against the intended From domain. A DNS record lookup shows publication; it does not by itself demonstrate how a real message authenticates after signing, relay, and receipt.
Use DMARC monitoring to understand legitimate traffic before choosing an enforcement policy. RFC 7489 defines none, quarantine, and reject policies. The trade-off is operational: stronger policy expresses a stricter disposition request for failures, while an incomplete sender inventory can leave legitimate mail failing authentication. Change control needs test messages from each authorized sending path and someone responsible for investigating reports.
Treat policy as evidence with a timestamp.
A current DNS lookup cannot establish which policy was published when last week's order notice was sent. Retain configuration revisions and test outcomes according to the organization's evidence policy, without presenting them as a guarantee that any receiver accepted the message.
Build the bounce ledger before the polling loop
Diagram in words: order committed → notification intent saved → suppression checked → message submitted → remote message ID saved → callback or poll result recorded → permanent recipient failure activates suppression. Each arrow is a place where an interrupted worker must be able to resume.
The interesting failure is a duplicate report. Suppose order ORD-1042 produces notice notice-1042, and the same permanent recipient failure arrives through a callback and a later poll. Recording it twice can inflate bounce metrics. Processing it without an atomic suppression update can also leave the next order notice eligible for submission. Use a stable event ID at the adapter boundary and transact the event insertion with its suppression effect. In this illustrative replay, there are 3 inputs: the initial acceptance, the permanent recipient failure, and a repeat of that failure. The expected result is 2 distinct evidence records and 1 active suppression. Now interrupt the transaction after inserting the failure but before updating suppression. Both writes must roll back, so the replay can perform both again. If the insert survives on its own, the next attempt may see a duplicate and skip the missing suppression. That's the trap. An event deduplication feature cannot fix a transaction boundary that excludes its business effect; the storage implementation must make that guarantee, and the deployment test must exercise it.
Replay that interruption.
Here is a TypeScript boundary for that operation. The identifiers and classification are illustrative application fields, not a commercial API schema. The adapter must derive them from the actual transport's documented reports; a generic temporary failure must never silently become a permanent recipient failure.
type DeliveryEvidence = { eventId: string; noticeId: string; recipientRef: string; observedAt: string; kind: "accepted" | "delivered" | "temporary_failure" | "permanent_recipient_failure"; }; interface EvidenceTransaction { insertOnce(event: DeliveryEvidence): Promise<boolean>; suppress(input: { recipientRef: string; reason: "permanent_recipient_failure"; sourceEventId: string; }): Promise<void>; } interface EvidenceStore { transaction<T>( work: (tx: EvidenceTransaction) => Promise<T> ): Promise<T>; } async function recordEvidence( store: EvidenceStore, event: DeliveryEvidence ): Promise<void> { await store.transaction(async (tx) => { const inserted = await tx.insertOnce(event); if (!inserted) return; if (event.kind === "permanent_recipient_failure") { await tx.suppress({ recipientRef: event.recipientRef, reason: "permanent_recipient_failure", sourceEventId: event.eventId, }); } }); } The store contract matters more than the function's size. Enforce event uniqueness in durable storage, and make transaction failure roll back both operations. Use a recipient reference in routine logs so an operator can investigate without copying the seller's address into every trace. Restrict access to the underlying address and report payload. Establish retention with the people who own the compliance requirement.
A late accepted event must not erase a recorded permanent failure. Preserve events and derive the current state using explicit transition rules. Delivery reports describe transport outcomes, so retain their original classification alongside the normalized value whenever the evidence policy permits it. RFC 3464 provides a standard delivery-status notification format; the application still needs an adapter for the interface it consumes.
Poll for missing evidence and alert on uncertainty
Pick polling when a delivery interface exposes status reads and you need to reconcile missing reports. The following function makes one reconciliation pass. Its injected read operation is the API boundary; bind it to a documented endpoint, parse the response, and normalize it before calling this code. There is no universal email-status API.
type PendingNotice = { noticeId: string; remoteMessageId: string; }; async function reconcileBatch( pending: readonly PendingNotice[], readEvidence: (remoteMessageId: string) => Promise<readonly DeliveryEvidence[]>, store: EvidenceStore, onFailure: (noticeId: string, error: unknown) => void ): Promise<void> { for (const notice of pending) { try { const events = await readEvidence(notice.remoteMessageId); for (const event of events) { if (event.noticeId !== notice.noticeId) { throw new Error("Delivery evidence notice mismatch"); } await recordEvidence(store, event); } } catch (error: unknown) { onFailure(notice.noticeId, error); } } } Keep the scheduler outside this pass. Configure request timeouts in the adapter, select due records in bounded batches, and persist the next attempt time. Honor documented rate limits and server retry instructions. Backoff with jitter spreads retries; an age limit stops a missing terminal result from becoming an endless polling job. A timeout produces unresolved evidence, not a fabricated bounce.
Watch the gaps.
Useful metrics include submission failures, permanent recipient failures, suppressed attempts, and the age of the oldest unresolved notice. Put notice and event IDs in structured logs, rather than metric labels with an ever-growing number of values. An alert on evidence age answers a practical question: can the team still explain the seller's notification before the order-handling deadline? Set that threshold from the marketplace's actual workflow. No universal number fits it.
Before deployment, replay one permanent failure twice and verify a single ledger entry and an active suppression. Test a temporary failure, an out-of-order accepted report, a mismatched notice ID, and a read timeout. Also test transaction rollback. Those cases exercise the evidence claims directly. During rollout, compare the normalized events with original reports and check that suppressed recipients never reach the submission step.
Polling adds requests and storage writes. Callbacks add an inbound authentication and replay-handling boundary. Choose their balance around evidence freshness, available interfaces, and team ownership; request volume is a capacity input, not the reason to weaken the audit trail.
Limits: transport evidence ends before human acknowledgment
A delivered status does not establish that a seller read the order or accepted the fulfillment obligation. Mail privacy features can also affect what senders learn from remote content, as the Mail Privacy Protection guide explains. Treat open tracking as a weak signal for this compliance question.
The ledger proves what your system recorded and why it made a suppression decision. Its value depends on trustworthy adapters, protected records, and tested transitions. If the requirement is seller acknowledgment, add an authenticated acknowledgment action tied to the order. Preserve the distinction in the audit view.
References
The authentication and delivery-status claims above use the protocol specifications below. The privacy guide supports the limit on inferring recipient behavior from mail tracking. The code illustrates application policy rather than a standardized API.
Further reading
- RFC 7489, Domain-based Message Authentication, Reporting, and Conformance: https://datatracker.ietf.org/doc/html/rfc7489
- RFC 7208, Sender Policy Framework: https://datatracker.ietf.org/doc/html/rfc7208
- RFC 6376, DomainKeys Identified Mail Signatures: https://datatracker.ietf.org/doc/html/rfc6376
- RFC 3464, An Extensible Message Format for Delivery Status Notifications: https://datatracker.ietf.org/doc/html/rfc3464
- Mail Privacy Protection guide: https://support.apple.com/guide/iphone/use-mail-privacy-protection-iphf084865c7/ios


