flufl.bounce
Email bounce detectors
What it is and what it does
flufl.bounce is a Python library for parsing bounce messages and extracting the original email addresses that triggered delivery failures. It implements heuristics to handle the many different bounce message formats found in real-world mail systems, and provides explicit support for VERP (Variable Envelope Return Path) and RFC 3464 DSN (Delivery Status Notification) formats.
The library is designed for developers building mail handling systems—particularly mailing list managers and email processing pipelines—where identifying which addresses bounced is essential for list maintenance and delivery monitoring. It requires Python 3.10 or later and depends only on atpublic, making it straightforward to integrate into existing projects.
Use it for:
- Mailing list management: automatically process bounce messages to identify and remove non-deliverable addresses
- Email delivery monitoring: extract bounced addresses from DSN notifications to track delivery failures
- VERP-based bounce tracking: parse variable envelope return path messages to correlate bounces with original recipients
- Bulk email systems: filter and categorize bounce messages to separate permanent failures from temporary issues
- Mail server integration: build bounce handlers that extract addresses for automated list cleaning
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Detects and extracts original bouncing email addresses from bounce messages, supporting multiple formats including VERP and RFC 3464 (DSN).
Yes. The package is mature (Production/Stable, Mature classifiers), actively maintained, has no known vulnerabilities, and solves a specific problem in email handling with low install friction. It is well-suited for any project that needs to reliably parse bounce messages.
Install
flufl-bounce on PyPI
pip
pip install flufl-bounceuv
uv add flufl-bouncepoetry
poetry add flufl-bounceInstalling flufl.bounce
Before you install
Low install friction with a single pure-Python dependency (atpublic). Active maintenance status with a recent release (84 days ago).
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install flufl.bounce
from flufl.bounce import bounce_scanner
addresses = bounce_scanner(bounce_message_text)
Requires Python 3.10 or later.
Verify before relying
- Specific accuracy or coverage metrics for the bounce detection heuristics across different mail systems
- Performance characteristics when processing large volumes of bounce messages
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — atpublic |
| Maintenance | actively maintained — 84 days since the last release |
| First released | |
| Downloads | 681,187/month — #5,364 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: flufl_bounce-5.0.1-py3-none-any.whl
Keywords: bounce, email, mailman
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
email-validatorValidates email address syntax and optionally…
permissive · top 1,000 on PyPI
postmarkerPostmarker is a Python client library for the…
permissive · top 5,000 on PyPI
django-sesA Django email backend that routes outgoing…
permissive · top 5,000 on PyPI
flufl.lockProvides NFS-safe file locking with timeout…
permissive · top 5,000 on PyPI
flufl.i18nflufl.i18n provides a high-level API for…
permissive · top 15,000 on PyPI
mailbitsProvides utilities for parsing, converting, and…
permissive · top 15,000 on PyPI
emvalValidates email addresses according to RFC 5322…
permissive · top 15,000 on PyPI
pyIsEmailValidates email addresses against RFC standards…
permissive · top 15,000 on PyPI
mail-parserParses raw email messages into structured…
permissive · top 5,000 on PyPI
zerobouncesdkPython SDK for the ZeroBounce email validation…
permissive · top 15,000 on PyPI