Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Bounce Handler.

Features

  • 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
  • Diagnostic extraction — Pulls the human-readable error message from each bounce

Requirements

  • Python 3.10+
  • No external dependencies (stdlib only)
Chapter 2

Quick Start

Follow this guide to get Bounce Handler up and running in your environment.

Quick Start

bash
# 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.txt

Input Format

The tool expects a JSON array of bounce records:

json
[
  {
    "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"
  }
]
Chapter 3
🔒 Available in full product

Bounce Categories

Chapter 4
🔒 Available in full product

FAQ

You’ve reached the end of the free preview

Get the full Bounce Handler and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $19 →
📦 Free sample included — download another copy for the full product.
Bounce Handler v1.0.0 — Free Preview