Prompt
How do I handle bounced and blocked emails automatically?
Latest observation
Nov 6, 2026
OpenAI APIWeb search: off
To handle bounced and blocked emails automatically, set up bounce processing and suppression logic in your email system so invalid or unreachable addresses are detected and stopped from future sends.
1) Distinguish bounce types
- Hard bounce: permanent failure
Examples: invalid address, domain doesn’t exist, recipient not found.- Action: stop sending to that address immediately
- Soft bounce: temporary failure
Examples: mailbox full, server busy, message too large.- Action: retry a few times, then suppress if it keeps failing
- Blocked/filtered: recipient server rejected or filtered your message
Examples: spam policy, IP/domain reputation issues, authentication failures.- Action: pause retries, investigate deliverability, and suppress if consistently rejected
2) Use a bounce inbox or webhook
Most email providers support one of these:
- Webhook/event stream for bounce, complaint, and delivery events
- Bounce mailbox (e.g.,
bounces@yourdomain.com) with automated parsing
If you’re using an ESP like SendGrid, Mailgun, SES, Postmark, etc., prefer event webhooks over parsing raw email.
3) Automate suppression
Maintain a suppression list with statuses such as:
hard_bouncedsoft_bouncedblockedcomplainedunsubscribed
Rules:
- On hard bounce: suppress permanently
- On blocked: suppress temporarily or permanently depending on cause
- On soft bounce: retry with backoff; suppress after N attempts
- On complaint/unsubscribe: suppress immediately
4) Parse the provider response
For each bounce event, extract:
- recipient email
- bounce category/type
- SMTP response code/message
- timestamp
- message ID/campaign ID
Use these to decide the action:
5xxcodes → usually permanent4xxcodes → usually temporary
5) Retry strategy
For soft bounces and some blocks:
- Retry after increasing delays, e.g. 15 min, 1 hour, 6 hours, 24 hours
- Cap retries at 3–5 attempts
- Stop retrying if you get repeated same-domain failures
6) Update your sending pipeline
Before each send:
- Check suppression list
- Skip suppressed addresses
- Log reason for skip
After each send:
- Record delivery/bounce outcome
- Feed events into your suppression processor
7) Monitor reputation issues
For “blocked” emails, investigate:
- SPF, DKIM, DMARC alignment
- Sending domain/IP reputation
- Spam complaints
- Content quality
- Sending volume spikes
- List hygiene
8) Example workflow
- Send email
- Receive bounce webhook
- Classify as hard/soft/blocked
- Update recipient status in DB
- Retry if soft bounce and under retry limit
- Suppress permanently if hard bounce/complaint
- Exclude suppressed addresses from future sends
9) Minimal data model
You can store:
emailstatusbounce_countlast_bounce_typelast_bounce_reasonlast_event_atsuppressed_until(optional)provider_message_id
10) Best practices
- Use double opt-in to reduce invalid addresses
- Validate emails at signup
- Remove role-based emails if not appropriate
- Process bounce events in near real time
- Keep suppression lists synchronized across systems
If you want, I can also provide:
- a database schema
- a bounce-processing pseudocode example
- or a provider-specific setup for SES/SendGrid/Mailgun/Postmark.