Nobody notices email infrastructure until it stops. A provider outage, an expired certificate, a DNS mistake or a blocklisting can prevent password resets, order confirmations and security alerts from reaching customers, and the damage grows with every minute: support tickets, abandoned purchases, lost trust. Most teams have a plan for the database and none for the mail path. A continuity plan does not need to be elaborate. It needs to identify which flows are critical, understand how they can fail, prepare a second route that actually works, keep messages from being lost while the first route recovers, and give people a runbook and the practice to use it. This guide takes you through that process for transactional and operational email. Marketing campaigns can usually wait; resets and receipts cannot. See also reliable sending queues and the incident runbook.
Step 1: Map critical flows
| Flow | Impact if delayed | Acceptable delay | Fallback if email fails |
|---|---|---|---|
| Password reset and sign-in codes | Users locked out | Seconds to minutes | SMS or another channel, with care. See reset and OTP email |
| Account verification | New users cannot start | Minutes | Resend option, in-app prompt |
| Order confirmations and receipts | Support load, doubt | Minutes to hours | Show confirmation on screen and in account |
| Security alerts | Delayed fraud response | Minutes | Push notification or SMS |
| Invoices and billing notices | Payment delay | Hours to a day. See invoice emails | Portal availability |
| Support replies | Customer frustration | Hours | Ticket portal |
| Newsletters and campaigns | Revenue delay | Days | Reschedule |
Agree the priorities with the business. When capacity is limited, send the critical flows first and pause the rest.
Step 2: Understand how it can fail
| Failure | Examples | Detection | Typical recovery |
|---|---|---|---|
| Provider outage or degradation | API errors, slow acceptance, regional failure | Error rates, latency, status page | Fail over to the second provider; queue and retry |
| Account suspension or limit hit | Abuse flag, quota exhausted | 403 or limit errors | Contact provider; shift traffic; fix cause |
| Credential or key problem | Expired or revoked key, wrong environment | 401 errors. See API error handling | Rotate and redeploy keys. See rotating keys |
| DNS failure | Zone mistake, expired domain, provider outage, DNSSEC break | Authentication failures, bounces. See DNSSEC and CAA | Restore records; keep a zone export |
| Certificate expiry | Mail server or tracking domain | TLS errors. See SMTP certificates | Renew and reload |
| Blocklisting or reputation drop | IP or domain listed | Bounce messages, deferral spikes | Move critical mail to another pool; fix and delist. See reputation recovery |
| Application bug | Wrong template, loop sending duplicates | Alerts on volume and content | Stop, roll back. See template versioning |
| Network or cloud region failure | Egress blocked, port 25 issues | Connection errors | Fail over region; check network rules |
| Webhook or event pipeline failure | Events lost | Silence alarm | Reconcile. See webhooks vs polling |
Step 3: Prepare a second route
- Choose the alternative in advance: a second provider, a second region with the same provider, or your own relay for emergencies.
- Set it up fully now. Domain verification, SPF, DKIM, DMARC alignment, return-path and tracking domains, reverse DNS where relevant. See authenticate your domain and multiple vendors, one domain.
- Warm it with real traffic. Send a small, steady share of live transactional mail (even 5 to 10 per cent) through the second route so that it has reputation when needed. An untouched account with no history will be throttled exactly when you depend on it. See warm-up.
- Abstract the provider in code. A thin interface with the same message model, templates and tags for both providers, so that switching is a configuration change.
- Align identities. The same From domains, so that recipients and filters see continuity. DKIM selectors for both providers. Avoid SPF conflicts and the lookup limit. See SPF lookup limit.
- Keep credentials ready in a secrets manager, tested monthly.
- Understand cost and limits of the second route, and ask its provider about emergency capacity.
Step 4: Make the queue durable
Failover works only if messages survive the outage. Put every outbound message in a durable queue (database or message broker) before attempting to send, and mark it sent only after acceptance. Give each message an idempotency key so that retries and failover cannot produce duplicates. Use retries with backoff and a limit, and a dead-letter store for messages that need human attention. Keep an expiry for time-sensitive messages: a sign-in code that arrives after an hour is worse than none. Maintain priorities so that critical mail overtakes bulk when the system recovers. See idempotency patterns and rate limits and backoff.
Step 5: Decide how failover happens
| Approach | How | Pros | Cons |
|---|---|---|---|
| Manual switch | An on-call engineer flips a flag | Simple; avoids false alarms | Slower; depends on a person |
| Automatic on error threshold | Circuit breaker routes to the backup when failures exceed a limit | Fast | Risk of flapping; needs good thresholds and cooldown |
| Weighted split always on | Traffic shared continuously between providers | Backup always warm | More complexity; two sets of logs |
| Per-flow routing | Critical flows have a different path than bulk | Protects the most important mail | Configuration to maintain |
Whatever you choose, define the trigger (for example, more than 20 per cent errors for five minutes), the action, who is notified and how to return to normal. Include a cooldown to avoid switching back and forth.
Step 6: Write the runbook
- Detect and declare: alerts, status page checks, who declares an incident, and the channel for coordination.
- Assess: which flows are affected, how many messages are queued, what the provider says.
- Contain: pause bulk and non-critical sends; stop any runaway loop.
- Switch: exact steps, commands and flags to move critical mail to the second route; how to verify with a test send.
- Communicate: templates for internal updates, a status page note and customer support macros. Offer alternatives such as on-screen confirmation.
- Recover: when the primary is back, drain the queue in priority order, at a rate that does not trigger throttling, and watch bounces.
- Review: a blameless post-incident review within a week, with actions and owners.
Keep the runbook where people can reach it during an outage, which means not only in a system that depends on email. Include contact details and escalation paths for each provider. See abuse mailboxes for reports that may arrive during an incident.
Step 7: Test regularly
- Failover drills at least twice a year: route a share of live transactional mail through the second provider on purpose and confirm delivery, headers and authentication.
- Game days: simulate a provider outage in staging by blocking egress or injecting errors; observe the queue, retries and alerts. See load testing.
- Credential checks: monthly send from each route and key.
- DNS recovery test: restore records from your export into a test zone.
- Time the recovery and record the results against your goals.
Monitoring that catches trouble early
Alert on error rate, acceptance latency, queue age, bounce and deferral spikes, authentication failures and the silence of webhook events. Probe the system from outside with a synthetic message every few minutes to a monitored mailbox, and measure the end-to-end time. Subscribe to your providers' status feeds. See delivery monitoring.
A continuity plan for email is mostly preparation done while things are calm: a second warmed route, a durable queue and a runbook that has been practised. When the outage comes, the work becomes a checklist instead of an improvisation.
Add a resilient route Talk to us about a warmed, authenticated second path for critical mail.
References and further reading
Frequently asked questions
Do I need a second email provider?
For critical flows such as resets and receipts, a warmed, tested second route is the most reliable protection against a provider outage.
Why warm the backup provider?
An unused account has no reputation and may be throttled when you need it. A small steady share of live traffic keeps it ready.
How do I avoid duplicates during failover?
Use durable queues and idempotency keys so retries and re-routing cannot send the same message twice.
Should failover be automatic?
It can be, with sensible thresholds and cooldowns. Many teams start with a manual switch and automate once they trust the signals.
How often should I test the plan?
At least twice a year with a drill, plus monthly credential checks.