Mailerflow Start free
Blog › Transactional Email & Developer Tools › Transactional Email Fundamentals

Monitoring Transactional Email: Logs, Alerts and SLAs

Published November 19, 2026 · Updated November 19, 2026 · 10 min read

Illustration for Monitoring Transactional Email: Logs, Alerts and SLAs

Monitoring transactional email means instrumenting three layers: logs that record what happened to each message, alerts that tell you when something is wrong, and SLAs that define what "wrong" means. You need all three because transactional email fails silently — a password reset that never arrives looks identical to a user who never clicked the button.

What monitoring transactional email actually means

Transactional email is triggered by a user action or a system event: password reset, receipt, invite, one-time code, security notice. It differs from a campaign in ways that shape how you monitor it. It goes to one recipient, it is expected within seconds, and there is no unsubscribe logic to speak of — the recipient asked for it by doing something.

That expectation of immediacy is the whole reason monitoring matters. A missing receipt generates a support ticket. A missing OTP blocks a login outright. And a send that fails quietly — no exception thrown, no error in your app log — is invisible unless you built the instrumentation to see it.

Break monitoring into three layers:

  • Logging — a durable record of every message: what you asked the provider to send, what the provider did with it, and what the recipient's mail server said back.
  • Alerting — rules that decide when a human should look. Not every bounce, not every retry, but the patterns that mean users are affected right now.
  • SLAs — measurable commitments about latency and success rate, so "is email working?" has a numeric answer instead of a feeling.

For a wider view of the market, our ranking of the Best Email Marketing Platforms shows what each service really costs for your number of contacts.

What to log for every transactional email

Most teams log the API response and stop. That covers roughly half the story, because the interesting failures happen after the API call returns.

Field Why it matters
Internal message ID Your correlation key across app logs, provider logs and support tickets
Provider message ID The only reliable way to look up a message in the provider's delivery log
Template / type Lets you alert per flow — password reset matters more than a weekly digest
Recipient address Needed for support and for suppression checks
Idempotency key Explains duplicate sends and lets you safely retry without double-sending
Request timestamp Start of your latency measurement
Accepted timestamp When the provider took responsibility for the message
Delivery / bounce / complaint events The async half of the story, usually arriving via webhook
Latency: request → accepted Catches API-side slowness and queueing problems
Latency: accepted → delivered Catches delivery delays at the recipient's mail server
Status A single field your dashboards and alerts can group by
Error code and reason The difference between "mailbox full" and "domain does not exist"
Retry count High retry counts predict bounces before they happen
Sending domain / IP pool Isolates reputation problems to one domain or stream

Two log sources exist here and you need both. Your application log knows why you sent the message — which user, which flow, which request. The provider's email delivery logs know what happened to it after it left your process. Join them on a shared ID. If you only store the recipient address as your key, retries and repeat sends to the same person will collide and you will misread your own data.

This is where a webhook feed earns its place. Mailerflow exposes signed real-time webhooks with retries and delivery logs, which is the mechanism that pushes delivery, bounce and complaint events into your own store instead of leaving them stranded in a dashboard.

How the pipeline works: from API call to inbox

Knowing the stages tells you where a failure can hide, because each stage produces a different log entry and a different failure mode.

  1. Your app calls the API. Failures here are synchronous: a bad key, a malformed address, a recipient on the suppression list. You get an HTTP status back immediately.
  2. The provider accepts the message. From this point the message is the provider's responsibility, and your app has already moved on. This is the boundary most teams fail to log.
  3. The provider queues and attempts delivery to the recipient's mail server.
  4. The recipient's mail server responds with an SMTP code — accepted, deferred, or rejected.
  5. The event comes back to you asynchronously, typically minutes later, as a delivery, bounce or complaint event.

The synchronous/asynchronous split drives everything downstream. A 4xx at request time is your bug: fix the code, the key or the data. A bounce arriving four minutes later is a data-quality or reputation issue: the address was wrong, the mailbox is gone, or your domain is being throttled. Alerting on both with the same rule produces noise, and debugging both with the same checklist wastes time.

Two API-level tools reduce the failure surface. Idempotency keys prevent duplicate sends when your application retries after a timeout — without them, a network blip can send two password resets. Scoped API keys limit the blast radius per service, so a compromised notification worker cannot send from your billing stream. The Mailerflow REST API supports scoped keys, idempotency keys, an OpenAPI spec, code samples and a JS SDK, and transactional mail runs on a high-priority lane with templates and variables.

Which alerts are worth waking someone up for

Alert on symptoms users feel, not on raw counters. A bounce rate of 3% on a marketing list is a data hygiene task; a bounce rate of 3% on password resets means real people cannot log in.

Signal Example trigger Suggested owner
Hard bounce spike on a critical template Password reset hard bounces above 2% over 15 minutes On-call engineer
Delivery latency breach p95 accepted → delivered above 60 seconds for OTP emails On-call engineer
Volume drop for a critical template Password reset sends fall 50% below the same hour last week Product engineer
Authentication failure SPF, DKIM or DMARC check fails on any send Deliverability owner
Complaint rate increase Complaints on transactional mail rise week over week Deliverability owner
Suppression list growth Suppression list grows faster than your contact base Data owner
Webhook delivery failure Your endpoint returns non-2xx for more than 5 minutes On-call engineer

That last row is the one teams forget. If your webhook endpoint is down, you stop receiving delivery events and your dashboards go quiet — which looks exactly like everything working. Monitor the monitoring.

Tier your alerts by user impact. Page for login-blocking flows: password reset, OTP, magic links. Open a ticket for receipts and notifications. Keep everything else on a dashboard. Alerting on every individual bounce is the fastest route to a muted channel, and a muted channel is worse than no channel.

Setting SLAs you can actually meet

An email SLA is not "99.9% uptime." It is a measurable statement about latency and success, written in the same units your logs use. Two examples that are checkable:

  • 95% of password reset emails accepted by the provider within 2 seconds of the API call.
  • 99% of accepted OTP emails delivered within 60 seconds.

Pick thresholds from your own baseline, not from someone else's blog post. Run for two weeks, measure p50 and p95, then set the SLA slightly above your normal worst case. An SLA you breach every Tuesday teaches the team to ignore it.

Separate internal from external. Your engineering SLA is a debugging target. A customer-facing SLA in a contract should only promise what you can measure internally and control directly. Be precise about the boundary: delivery to the inbox is ultimately decided by the recipient's mail server, so commit to acceptance and delivery attempts, not to guaranteed inbox placement. Anyone promising the latter is overpromising.

Two operational factors affect early throughput and belong in your SLA thinking: warm-up limits on a new sending domain, and reputation monitoring. Mailerflow handles own-domain sending with guided DKIM, SPF and DMARC setup and automatic verification, plus automatic suppression of bounces and complaints, reputation monitoring and warm-up limits — all of which shape what a realistic SLA looks like in month one versus month six.

Debugging a missing email: a step-by-step walkthrough

Work in order. Each step eliminates a category of cause.

  1. Confirm the send was attempted. Search your application log for the API call. No call means the bug is in your application, not your email.
  2. Read the API response. A 4xx tells you the request was rejected — check the error code before going further.
  3. Look up the provider's delivery log using the provider message ID, or the recipient address plus a time window.
  4. Classify the state. Never sent, accepted but not delivered, delivered but not seen, or suppressed. Each has a different fix.
  5. For accepted-but-not-delivered, read the SMTP response and bounce classification. A soft bounce means the receiving server deferred it; a hard bounce means the address is permanently undeliverable.
  6. For delivered-but-not-seen, check the spam folder, recipient-side filtering rules, and whether the template rendered correctly. A broken variable can produce a message that looks like phishing.
  7. Verify the address and suppression status. If the recipient hard-bounced months ago, they are on the suppression list and future sends will be skipped by design.
  8. Check idempotency key collisions if the send was retried — a reused key can silently drop a legitimate second message.

A concrete illustration: a user reports they never received a password reset. Your app log shows the API call returned 202. The provider's delivery log shows the message was never attempted because the recipient is on the suppression list — they hard-bounced eight months ago on a receipt. The fix is not a retry; it is an address-verification step at signup. This example is illustrative, not a real customer case.

Common mistakes

  • Logging only the API response. The async delivery events are where bounces, complaints and delays live. Without them you are monitoring the first 10% of the pipeline.
  • Using the recipient address as the only correlation key. Retries and repeat sends collide. Store an internal ID and the provider ID.
  • Alerting on volume instead of absence of volume. A spike is often fine; a sudden drop in password reset sends usually means your application broke.
  • Skipping webhook signature verification. An unverified endpoint can be spoofed, and your logs become untrustworthy.
  • Not storing the provider message ID. Without it, support cannot look up a specific message, and you will be reduced to guessing by timestamp.
  • Treating all bounces the same. Soft bounces retry; hard bounces suppress. One alert rule for both creates noise and hides real problems.
  • Setting SLAs before measuring a baseline. You will either set them too loose to matter or breach them constantly.
  • Forgetting to monitor the monitoring. If your webhook endpoint is down, silence looks like success.

Checklist

Logging

  • [ ] Store both your internal message ID and the provider message ID on every send.
  • [ ] Record the template or flow type as a first-class field.
  • [ ] Capture request, accepted, delivered and bounced timestamps.
  • [ ] Persist error codes and reasons verbatim, not just a status label.
  • [ ] Verify webhook signatures before writing events to your store.

Alerting

  • [ ] Page on hard bounce spikes for login-blocking templates only.
  • [ ] Alert on delivery latency p95, not average.
  • [ ] Alert on volume drops for critical flows.
  • [ ] Monitor SPF, DKIM and DMARC failures.
  • [ ] Alert when your webhook endpoint fails for more than five minutes.

SLAs

  • [ ] Measure two weeks of baseline before writing any threshold.
  • [ ] Define SLAs in acceptance and delivery terms, not inbox placement.
  • [ ] Keep internal and customer-facing SLAs separate.
  • [ ] Account for warm-up limits on new sending domains.

Debugging

  • [ ] Confirm the API call happened before investigating the provider.
  • [ ] Classify every missing email into one of the four states.
  • [ ] Check suppression status before retrying anything.
  • [ ] Review idempotency keys when a duplicate or missing send is reported.

FAQ

How long should I keep transactional email logs? As long as you need for support, debugging and your own compliance obligations. Retention is a policy decision, not a technical default — check what your jurisdiction and privacy commitments require. Mailerflow offers configurable retention and hosts data in Europe, along with GDPR tools for export, erasure and consent logs.

What is a good delivery latency target? It depends on the flow. Login-blocking mail such as OTP and password reset should be measured in seconds from request to accepted. Receipts and notifications can tolerate minutes. Set your target from your own p95, not from a generic number.

Should I use webhooks or poll the API for delivery status? Use webhooks for real-time events and polling as a reconciliation fallback. Webhooks give you low latency and lower API load; polling catches anything a missed webhook dropped. Run a nightly reconciliation job that compares your stored statuses against the provider's.

How do I monitor email without drowning in alerts? Tier by user impact: page for login-blocking flows, ticket for receipts, dashboard for everything else. Then review your alert history monthly and delete any rule that has never produced an actionable page.

What is the difference between a soft and hard bounce for alerting? A soft bounce is temporary — the mailbox is full or the server deferred — and the provider will retry. A hard bounce is permanent and the address should be suppressed. Alert on hard bounce rates for critical templates; track soft bounces as a trend rather than paging on them.

If you want the delivery events, idempotency and log data described here without building the plumbing yourself, the Mailerflow transactional email API gives you signed webhooks, delivery logs and a high-priority sending lane to build on. Send your first transactional email with the Mailerflow REST API — scoped keys, idempotency and an OpenAPI spec. Start free.