This chapter covers the core features and capabilities of Bounce Handler.
Follow this guide to get Bounce Handler up and running in your environment.
# 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.json --clean emails.txt --output clean.txtThe tool expects a JSON array of bounce records:
[
{
"email": "user@example.com",
"smtp_code": "550",
"diagnostic": "5.1.1 The email account does not exist",
"timestamp": "2026-03-14T12:00:00Z"
},
{
"email": "other@example.com",
"smtp_code": "421",
"diagnostic": "Try again later",
"timestamp": "2026-03-14T12:01:00Z"
}
]Get the full Bounce Handler and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.