Prompt
email bounce handling
Latest observation
Nov 10, 2026
OpenAI APIWeb search: off
Email bounce handling is the process of detecting, classifying, and acting on emails that fail to be delivered. If you’re building or operating an email system, the main goals are to:
- Identify bounces quickly
- Differentiate temporary vs permanent failures
- Update recipient status
- Protect sender reputation
- Retry only when appropriate
1) Types of bounces
Hard bounce
A permanent delivery failure. Examples:
- Invalid or non-existent address
- Domain does not exist
- Recipient blocked permanently
Action: Suppress the address immediately.
Soft bounce
A temporary failure. Examples:
- Mailbox full
- Server temporarily unavailable
- Message too large
- Greylisting
Action: Retry with backoff for a limited time, then suppress if it persists.
2) How bounces are received
Usually through:
- SMTP response codes during delivery
- DSNs/NDNs (Delivery Status Notifications / Non-Delivery Notifications)
- VERP or tagged return addresses to map bounces back to the original recipient
- Webhook events from an email service provider
3) Recommended bounce processing flow
- Receive bounce event
- Parse and classify
- Permanent vs temporary
- Reason code if available
- Map bounce to original recipient
- Record event
- Update recipient state
- Hard bounce → suppress
- Soft bounce → increment retry counter
- Retry policy
- Exponential backoff
- Max retries / max age
- Reputation controls
- Reduce sending to problematic domains
- Pause campaigns if bounce rates spike
4) Best practices
- Maintain a suppression list of hard-bounced addresses
- Use clear bounce categories in your database
- Handle complaints/spam reports separately from bounces
- Monitor:
- bounce rate
- hard bounce rate
- soft bounce rate
- domain-specific failure rates
- Validate emails at signup, but don’t rely on validation alone
- Use SPF, DKIM, and DMARC to reduce delivery issues
5) Example bounce status model
You might store fields like:
emailstatus=active | soft_bounced | hard_bounced | suppressedbounce_countlast_bounce_atlast_bounce_reasonsuppressed_at
6) Example policy
- 1–3 soft bounces: retry
- 4+ soft bounces within 7 days: suppress temporarily
- Any hard bounce: suppress immediately
- Re-enable only via explicit user action or verified email update
If you want, I can also provide:
- a database schema
- bounce classification rules
- a Python/Node implementation
- or an AWS SES / SendGrid / Mailgun-specific setup