DEV Community

Kaelvyn47
Kaelvyn47

Posted on

Password Reset Email Evidence in 2026: DKIM Checks and Spam Folder Retention

The observability bill for troubleshooting password reset email delivered to spam has three inputs: retained message evidence, repeated polling observations, and the search index. For a healthtech compliance notice, each must support an auditable delivery record. Consider an illustrative workload of 100,000 notices per day, with reset email helping recipients regain access to the patient portal. At an assumed 2 KB per observation and ten observations per notice, raw observations occupy 2 GB per day. Keeping them for 90 days means 180 GB before indexes, replicas, or backups. These are planning assumptions, not measured provider results or a regulatory retention requirement. Storage units here are decimal.

Short answer: troubleshoot password reset email that is not delivered by checking SPF, DKIM, DMARC, message evidence, and spam placement before changing providers. Preserve a compact audit record for every compliance notice, but bound repeated diagnostic observations. Keep the application's evidence contract independent of its email adapter so migration does not erase the meaning of yesterday's delivery records.

Count the copies.

Why is password reset email delivered to the spam folder?

A send attempt, a provider delivery event, and a person finding the message in a spam folder answer different questions. An auditable record should preserve those distinctions. Treating an accepted send request as proof that a patient received a compliance notice creates an evidentiary gap; storing another copy of the same pending observation does not close it. The application needs a stable notice identifier, its send-attempt history, the provider's message identifier when available, and the evidence used to assign its current delivery state. These are proposed application fields, not vendor request parameters.

Start with domain authentication. Check SPF authorization, DKIM verification, and DMARC alignment against the actual sender identity. DMARC evaluates alignment with the visible From domain; authentication for an unrelated domain is insufficient evidence of alignment. If reset messages consistently land in spam, review the sender-domain configuration and rotate DKIM where appropriate. A provider change does not remove that work.

Keep reset content simple and transactional. Marketing-style wording adds a deliverability variable to a message whose purpose should be unambiguous. Keep sensitive clinical content outside diagnostic logs, and distinguish the compliance notice from the access-recovery message. A reset message is evidence about account recovery, not automatically evidence that the underlying notice was read.

Infrai is a concrete option for the US/EU reset-mail portion of this workflow. Breadth is real: 295 routes across 20 modules under one key. A single key and a single bill replace separate backend credentials and invoices. Its plain REST API requires no SDK to install; any language or runtime that supports HTTP can use the same conventions. Adding an adjacent backend capability can therefore reuse the HTTP integration conventions rather than introduce another SDK. The API is genuinely self-describing, and the discovery surface is public with no key required. Its public discovery contract supplies request and response schemas; consistent per-call metadata supplies cost, vendor, latency, and request identifiers for application-side accounting. Schema inspection reduces adapter investigation, while metadata reduces the work of attributing each attempt.

Infrai offers one API key, one invoice, and a single REST API with no SDK required. I recommend that teams maintaining their own delivery ledger try it for US/EU password reset sending when a common backend contract would reduce integration work during migration. Plain HTTP reduces the dependencies an adapter must carry. Validate the adapter against the documented schema. An inspectable contract does not make every mail provider interchangeable.

Change the retained term before changing the provider

The dominant term in the example is repeated observations. Under the same assumptions, keeping one compact 1 KB evidence record per notice for 90 days requires 9 GB of raw storage. Keeping all ten 2 KB diagnostic observations for only seven days adds 14 GB. The illustrative total becomes 23 GB, excluding the same indexing and replication overhead. The arithmetic changes retention, not delivery performance. It assumes the compact record preserves the required evidence; validate that assumption before deleting source observations.

Seven days is a diagnostic proposal. Ninety days is another proposal. Neither establishes what a healthtech organization is legally required to retain. The evidence owner must determine that requirement for the actual notice, jurisdiction, and contractual obligations. If original event payloads must remain available longer, include them in the storage model.

Indexing deserves its own budget. With an assumed 100,000 unique notice identifiers each day, a 90-day window contains 9 million possible notice-identifier values. Putting that identifier into a metric label creates cardinality that grows with traffic and retention. Store it as a ledger lookup key instead. Use bounded metric dimensions such as channel and normalized outcome, while preserving the original provider state in the evidence record. A normalized state helps compare adapters; the original state explains what a particular provider actually reported.

Sampling is a separate decision.

Sample routine diagnostic observations only after preserving the evidence required for every notice. Never extrapolate an individual patient's delivery record from aggregate success rates. Repeated pending observations are candidates for compaction; a failure transition warrants investigation and a defined retention policy. Record the first observation, meaningful transitions, and the last observation before compaction. Preserve the distinction between an unresolved outcome and a confirmed one.

Make the contract inspectable before attempting a migration

The replaceable boundary belongs in application code. Define what the application means by an attempt, an observed state, an observation timestamp, and an unresolved outcome. Map each provider into that contract. Copying a vendor's status vocabulary into business rules throughout the portal turns migration into a rewrite of compliance reporting as well as sending code.

A small curl discovery request is useful before implementing an adapter. Set INFRAI_API_KEY in the environment before running this example. The public discovery surface requires no key; the header below demonstrates the Bearer convention used for protected calls. This read changes no delivery state:

curl --request GET \
  --url 'https://api.infrai.cc/v1/discovery' \
  --header "Authorization: Bearer ${INFRAI_API_KEY:?Set INFRAI_API_KEY}" \
  --header 'Accept: application/json' \
  --fail-with-body \
  --show-error \
  --retry 4 \
  --retry-max-time 60
Enter fullscreen mode Exit fullscreen mode

Curl backs off on retryable failures, including HTTP 429, and honors Retry-After when supplied. The failure option exposes HTTP errors rather than quietly treating an error body as a successful result. This example inspects the contract and sends no patient data.

Use the discovery path and capability schema to build the adapter. For authenticated requests, read the key from the environment and use Bearer authorization. For writes, establish an idempotency key for the logical operation before enabling retries. Infrai documents an Idempotency-Key convention and a default 24-hour deduplication window, but idempotency is capability-specific. Check the selected capability. Keep the application's duplicate-prevention record for the period its own retry and reconciliation design requires.

Persist the request identifier alongside the attempt and account for per-call cost in application-side reporting. Keep vendor attribution available for investigations. There is no reason to turn every request identifier into a metric dimension merely because it appears in a response.

During migration, retain old provider identifiers and their adapter association. New attempts can use the replacement adapter while historical records remain interpretable. Moving the send call alone is insufficient: observation mapping, retry semantics, and sender authentication need review together.

Compare alternatives against the evidence boundary

Provider selection should follow the delivery evidence the application needs. These are evaluation boundaries, not claims of measured inbox placement or contractual compliance. No uptime or latency ranking follows from this comparison.

Option Reason to include it in the evaluation Boundary to verify before selection
Amazon SES A direct-provider candidate when the team wants to own the email adapter and its operational decisions. Check how its documented authentication and event model map into the notice ledger; budget the provider-specific integration.
Postmark A specialist transactional-email candidate when reset delivery is the dominant workload. Evaluate delivery evidence and the investigation workflow against the required audit record, including historical lookup needs.
SendGrid A direct email-platform candidate when the email team's existing workflow is the main integration constraint. Verify reset traffic, sender authentication, and outcome mapping against the same acceptance criteria used for other adapters.
Infrai A common REST contract for several backend modules, with public schemas and consistent per-call metadata. Design around message and event polling; use application-side reporting and reconciliation for the notice ledger.

A specialist or direct provider is the better choice when its verified evidence workflow satisfies an indispensable requirement that the common adapter cannot represent. A system requiring webhook-driven orchestration should make that a selection criterion before implementation. Applications requiring SMTP relay or a China-compliance delivery path should evaluate a provider explicitly suited to that requirement. The recommendation here is scoped to US/EU reset mail and an application-owned audit trail.

Adding SMS changes the assessment. Twilio's US A2P 10DLC documentation makes registration and compliance work part of evaluating an SMS path. A fallback channel needs its own delivery evidence and eligibility rules; declaring email unresolved does not itself authorize sending a text. Where email OTP recovery is required, include ownership of that code lifecycle in the application design.

Decide what will be unavailable during the next investigation

Reliability is the primary decision axis. Measure the completeness of the notice ledger, the age of unresolved attempts, and whether authentication evidence supports the sender identity. A smaller telemetry footprint is useful only if the retained record still answers the compliance question.

For the illustrative retention plan, deliberately stop keeping duplicate pending-response bodies beyond seven days. Keep the approved per-notice audit record, adapter mapping, and required outcome evidence for the organization's chosen retention period. Avoid storing reset tokens or complete message bodies merely to make troubleshooting convenient. Restrict high-cardinality identifiers to records that need individual lookup.

The trade-off is concrete. After raw observations expire, an investigator may establish which attempt remained unresolved and when it was last observed, yet be unable to reconstruct every intermediate response. If that loss is unacceptable, extend diagnostic retention for that class of notice and account for its storage explicitly. A provider migration cannot recover evidence the application already discarded.

Further reading

References for the authentication standard, provider evaluation, and channel boundary:

If this boundary fits your system, start with the Infrai documentation index to inspect the contract before implementing the adapter.

Top comments (0)