Parse and categorize email bounces (hard/soft), extract diagnostic info, and automatically clean your mailing lists by removing permanently undeliverable addresses.
Browse the actual product documentation and code examples included in this toolkit.
Key features of Bounce Handler
• Hard/soft/unknown classification — Categorizes bounces by SMTP response codes • SMTP code matching — Recognizes 550, 421, and dozens of enhanced status codes • Regex pattern matching — Catches bounces from non-standard error messages • Raw .eml parsing — Extract bounce info directly from bounce notification emails • List cleaning — Removes hard-bounced addresses from your mailing list • JSON/CSV output — Export categorized bounces for further processing
Hard/soft/unknown classification — Categorizes bounces by SMTP response codes
SMTP code matching — Recognizes 550, 421, and dozens of enhanced status codes
Regex pattern matching — Catches bounces from non-standard error messages
Raw .eml parsing — Extract bounce info directly from bounce notification emails
List cleaning — Removes hard-bounced addresses from your mailing list
JSON/CSV output — Export categorized bounces for further processing
Configure Bounce Handler parameters to see how the product works.
# Categorize bounces from a JSON file python src/bounce_handler.py --input examples/sample_bounces.json # Parse a raw bounce email (.eml) python src/bounce_handler.py --parse-raw bounce_notification.eml # Clean a mailing list by removing hard bounces python src/bounce_handler.py --input bounces.js