Prompt
How do I handle bounce and suppression lists for app emails?
Latest observation
Handling bounce and suppression lists well is critical for app email deliverability and compliance. The goal is to stop sending to addresses that are likely invalid, risky, or have opted out, while keeping your app’s email system clean and reliable.
1) Understand the types of list entries
Bounce list
Addresses that failed delivery.
- Hard bounce: permanent failure, such as:
- invalid address
- domain doesn’t exist
- recipient not found
- Soft bounce: temporary failure, such as:
- mailbox full
- temporary server issue
- message too large
Suppression list
Addresses you should not email, even if they are technically deliverable.
Common reasons:
- user unsubscribed
- complaint/spam report
- repeated hard bounces
- manual suppression by support/admin
- compliance reasons (e.g., legal holds, do-not-contact)
2) Use a single “do not send” check before every send
Before sending any email, check the recipient against a suppression system that includes:
- hard bounces
- unsubscribes
- spam complaints
- manually blocked addresses
- optionally soft-bounce thresholds
Best practice:
- treat suppression as authoritative
- do the check at send time, not just during list import
3) Automatically process ESP/webhook events
If you use an email provider like SES, SendGrid, Mailgun, Postmark, etc., consume their event webhooks:
Typical events:
- delivered
- bounced
- deferred
- complained
- unsubscribed
When you receive a bounce or complaint:
- update your internal suppression store immediately
- mark hard bounces as permanently suppressed
- mark repeated soft bounces after a threshold, not immediately
4) Decide bounce handling rules
Hard bounce
Suppress immediately and permanently.
Example rule:
- if bounce type = hard, set
suppressed = true
Soft bounce
Track count and time window.
Example rule:
- if 3 soft bounces in 7 days, suppress temporarily or flag for review
- clear temporary suppression after a cooldown if later deliveries succeed
Complaints
Always suppress immediately.
5) Keep separate reasons and timestamps
Store why an address is suppressed, not just that it is suppressed.
Recommended fields:
- suppression_status
- suppression_reason
- source_event
- first_seen_at
- last_event_at
- bounce_count
- complaint_count
- last_message_id
- provider metadata
This helps with:
- debugging deliverability
- support investigations
- legal/compliance audits
6) Support per-channel and per-purpose preferences
Not all suppression should block all emails.
Examples:
- user unsubscribed from marketing only
- transactional email still allowed
- legal/security emails may still be allowed depending on policy and law
Model preferences by category:
- marketing
- transactional
- product updates
- security alerts
7) Don’t let import/sync re-add suppressed users
If you sync contacts from CRM or app DB:
- always merge against suppression status
- never overwrite suppression with “active” just because the user exists in another system
- treat suppression as higher priority than normal contact status
8) Clean your lists proactively
Good hygiene practices:
- validate emails on signup
- use double opt-in for marketing when appropriate
- remove obvious typos
- avoid role accounts if your policy discourages them (
info@,admin@, etc.) - regularly prune inactive recipients
- segment based on engagement
9) Build a suppression service or table
A simple schema might look like:
suppression_list (
id,
email,
scope, -- marketing, transactional, all
reason, -- hard_bounce, complaint, unsubscribe, manual
source, -- webhook, admin, import
status, -- active, suppressed, temporary
created_at,
updated_at,
expires_at, -- optional for temporary suppressions
metadata JSONB
)
And for bounce tracking:
email_events (
id,
email,
event_type, -- bounce, complaint, delivered, unsubscribe
provider,
provider_message_id,
payload JSONB,
created_at
)
10) Handle provider suppression lists too
Many ESPs maintain their own suppression lists. Decide whether:
- the provider’s suppression is the source of truth
- or your app owns suppression and syncs to the provider
Best practice:
- keep your own internal authoritative suppression list
- sync necessary entries to the provider
- still consume provider webhooks because they can catch issues you need to reflect internally
11) Be careful with retries
For transient failures:
- retry with exponential backoff
- limit the number of retries
- stop retrying if the provider marks the bounce as hard
Avoid:
- endless retries to invalid addresses
- re-queuing bounced mail without checks
12) Monitor metrics
Track:
- bounce rate
- hard bounce rate
- complaint rate
- unsubscribe rate
- delivery rate
- suppressed send attempts
Red flags:
- high hard bounce rate may indicate bad signup data or stale lists
- high complaints mean poor targeting or content
- repeated send attempts to suppressed users indicate a bug
13) Compliance considerations
Depending on region and email type, you may need:
- easy unsubscribe in marketing email
- honoring opt-out promptly
- retaining suppression records long enough to avoid accidental re-mailing
- avoiding sending to complaint addresses
Common practice:
- keep suppressed addresses hashed or securely stored if privacy is a concern
- retain suppression data even after account deletion if needed for compliance
14) A practical workflow
- User signs up or is imported.
- Before send, app checks suppression table.
- Email is sent.
- Provider sends event webhook.
- Webhook handler updates bounce/complaint/suppression tables.
- Next send attempt checks suppression first.
- Admin/support can manually add or remove suppression where allowed.
15) Recommended policy summary
- Hard bounce → permanent suppression
- Complaint → permanent suppression
- Unsubscribe → suppress for that email category or all marketing
- Soft bounce → track, retry carefully, suppress after threshold
- Manual admin block → suppress as configured
- Always check suppression at send time
If you want, I can also give you:
- a database schema,
- webhook handler examples,
- or sample code for Node.js/Python/Rails.