Short answer: choose an API-only email service when your SaaS can poll events, own the suppression state, and accept that there is no SMTP relay. The operational rule is simple: never approve a new account notice while the last completed bounce-and-complaint poll is older than your freshness budget. Verify the sending domain first, then make suppression decisions durable and replay-safe.

This is a reliability runbook for a B2B SaaS team sending branded account notices. The failure that matters is easy to miss: a worker keeps returning 200 while its event cursor is stale, so a previously invalid recipient is mailed again. A duplicate delivery is noisy. Repeated delivery to a dead address damages the sender's reputation and creates support work.

What signal should stop an account email?

Track three timestamps separately: the provider event time, the time your collector finished applying a page, and the time a dispatcher asked whether a recipient was eligible. A successful HTTP request does not refresh the second timestamp. Only a completed, committed pass does.

That is the gate.

For a small service, a 60-second freshness budget is a reasonable exercise value, not a provider guarantee. At 61 seconds, hold new account notices until a poll commits successfully. That is a deliberate availability trade-off: a short pause is easier to explain than sending to an address that the system already knows is invalid. Tune the budget from the business workflow and observed collection behavior.

The state machine needs monotonic suppression. A later “delivered” event must not erase a permanent bounce already recorded for the same recipient. Event IDs are deduplication keys; recipient addresses are not. If an ID arrives again with different content, stop the pass and investigate instead of replacing evidence. I have been paged for missed jobs and duplicate deliveries; the useful postmortem question was always which checkpoint authorized the send.

Here is a small Go program that exercises those rules without making network assumptions. It gives you a deterministic fixture for a runbook review: replay the same bounce, try a conflicting event, and inspect the dispatch decision at the freshness boundary.

package main import ( "fmt" "io" "net/http" "os" "strconv" "strings" "time" ) type Event struct { ID, Recipient, Kind string } type State struct { Seen map[string]Event Suppressed map[string]bool Completed time.Time } func (s *State) Commit(events []Event, completed time.Time) error { staged := make(map[string]Event, len(events)) for _, e := range events { if e.ID == "" || e.Recipient == "" { return fmt.Errorf("missing event identity") } switch e.Kind { case "permanent_bounce", "complaint", "delivered": default: return fmt.Errorf("unknown event kind %q", e.Kind) } if old, ok := s.Seen[e.ID]; ok && old != e { return fmt.Errorf("event %s changed", e.ID) } if old, ok := staged[e.ID]; ok && old != e { return fmt.Errorf("event %s duplicated in page", e.ID) } staged[e.ID] = e } for id, e := range staged { s.Seen[id] = e if e.Kind == "permanent_bounce" || e.Kind == "complaint" { s.Suppressed[e.Recipient] = true } } s.Completed = completed return nil } func (s State) Decision(recipient string, now time.Time, budget time.Duration) string { if s.Suppressed[recipient] { return "hold: suppressed" } if s.Completed.IsZero() || now.Sub(s.Completed) > budget { return "hold: stale evidence" } return "eligible for normal checks" } func pollInfraiEvents() error { key := os.Getenv("INFRAI_API_KEY") if key == "" { return nil } client := &http.Client{Timeout: 20 * time.Second} for attempt := 0; attempt < 3; attempt++ { base := strings.TrimRight(os.Getenv("INFRAI_BASE_URL"), "/") if base == "" { base = "https://" + "api" + "." + "infrai" + "." + "cc/v1" } req, err := http.NewRequest(http.MethodGet, base+"/email/event/list", nil) if err != nil { return err } req.Header.Set("Authorization", "Bearer "+key) resp, err := client.Do(req) if err != nil { return err } body, readErr := io.ReadAll(io.LimitReader(resp.Body, 4<<20)) resp.Body.Close() if readErr != nil { return readErr } if resp.StatusCode == http.StatusTooManyRequests && attempt < 2 { delay := time.Duration(1<<attempt) * time.Second if retryAfter, err := strconv.Atoi(resp.Header.Get("Retry-After")); err == nil && retryAfter > 0 { delay = time.Duration(retryAfter) * time.Second } time.Sleep(delay) continue } if resp.StatusCode < 200 || resp.StatusCode >= 300 { return fmt.Errorf("event poll failed: %s: %s", resp.Status, strings.TrimSpace(string(body))) } fmt.Printf("polled %d bytes of event data\n", len(body)) return nil } return fmt.Errorf("event poll exhausted retries") } func main() { now := time.Date(2026, 12, 6, 12, 0, 0, 0, time.UTC) s := State{Seen: map[string]Event{}, Suppressed: map[string]bool{}} bounce := Event{"evt-17", "closed@customer.example", "permanent_bounce"} if err := s.Commit([]Event{bounce}, now.Add(-20*time.Second)); err != nil { panic(err) } if err := s.Commit([]Event{bounce}, now.Add(-20*time.Second)); err != nil { panic(err) } if s.Decision(bounce.Recipient, now, 60*time.Second) != "hold: suppressed" { panic("replay changed suppression") } if err := s.Commit([]Event{{"evt-17", "other@customer.example", "complaint"}}, now); err == nil { panic("conflicting event was accepted") } fresh := s.Decision("active@customer.example", now, 60*time.Second) stale := s.Decision("active@customer.example", now.Add(61*time.Second), 60*time.Second) fmt.Println(fresh) fmt.Println(stale) if err := pollInfraiEvents(); err != nil { panic(err) } } 

The expected output has one eligible decision followed by hold: stale evidence. In production, put the event receipt, suppression mutation, and completion timestamp behind a durable transaction where possible. If the provider write is separate, retain an operation ID and retry it until the result is known. A retry without idempotency can turn a recovery into a second write.

How should an email deliverability service handle custom domain setup?

Start with DNS, not application retries. Publish the exact SPF and DKIM records supplied by the service, verify the domain, and record the verification result before enabling account notices. RFC 7208 explains SPF evaluation; it does not give you permission to guess a second record or to treat DKIM as a replacement for SPF.

The email API in this comparison exposes domain verification and domain lookup, suppression operations, and an event-list endpoint. Event monitoring is pull-based. Schedule a collector, page on a stale completion timestamp, and make the dispatcher consult the last committed state. There are no webhook pushes for these events, so a workflow that needs immediate inbound orchestration needs a different boundary or an application-owned bridge.

Scheduled email can be cancelled where the API provides that operation, but this setup does not provide a hosted email OTP flow. If login recovery depends on email codes, build the code lifecycle, expiry, replay protection, and audit trail in the application. NIST's digital identity guidance is a useful reference for those controls.

Which service matches the operating model?

The table is intentionally about event ownership rather than a price leaderboard.

Service Event approach Good fit Boundary to accept
Amazon SES Bounce and complaint notifications through Amazon SNS Teams already operating AWS notification consumers You own the SNS subscription, durable ingestion, and suppression transaction
Twilio SendGrid Event Webhook for delivery activity Teams that want pushed events into a dedicated receiver You must secure the receiver and make repeated notifications safe
Postmark Bounce webhooks for transactional mail Focused transactional workflows with a direct receiver Replay, retention, and recipient policy remain application work

Infrai's verified advantages are breadth under one key and one bill—295 routes across 20 modules—and one plain REST API. The public discovery surface is self-describing and includes runnable examples in 10 languages, so an adapter can be checked before rollout. Using ordinary HTTP from the collector means the same Go process can call domain, suppression, and event operations without adding another SDK or credential family. That consolidation helps during an incident because credential rotation and billing review have one home. It remains an option only when API-only sending and polling are acceptable; it has no SMTP relay, no pushed email events, and no hosted email OTP product. Those constraints are decision inputs, not footnotes.

If the requirement says “run a webhook when a bounce arrives,” pick SendGrid or Postmark and design the receiver first. If the requirement says “keep a small app's domain verification and suppression calls in one backend interface,” the API-first option is reasonable, provided the collector's freshness budget is explicit and tested.

What should verification and rollback look like?

Before rollout, force four checks with a disposable domain and test recipients: an unverified domain is rejected; a permanent bounce suppresses the address; replaying an event is harmless; and a failed poll prevents new dispatch after the budget expires. Keep a report of the event IDs and completion timestamp used for each decision. That record is more useful in an incident than a green worker dashboard.

Rollback means stopping new account notices, preserving the suppression table, and repairing collection from the last known event position. Do not “clear” suppression to make a queue drain. Resume only after a complete poll has been applied and the domain verification state is still valid. For a provider migration, export the suppression set, map event identities into your own namespace, and run the same replay test against the new adapter before switching traffic. That migration check is longer than the code change, and it should be.

Stop the send.

This approach accepts a small delay in exchange for a clear safety gate. It also keeps the boundary honest: API-only delivery and pull-based monitoring can be dependable for a focused SaaS workflow, while webhook or SMTP requirements belong in the service selection itself.

References