Skip to main content

Blackhole is an MTA (message transfer agent) that (figuratively) pipes all mail to /dev/null.

Project description

Build status of the master branch Test coverage Codacy grade Requirements Status

Blackhole is an MTA (message transfer agent) that (figuratively) pipes all mail to /dev/null, built on top of asyncio and utilises async def and await statements available in Python 3.5.

While Blackhole is an MTA, none of the actions performed via SMTP or SMTPS are actually processed, and no email is delivered. You can tell Blackhole how to handle mail that it receives. It can accept all of it, bounce it all, or randomly do either of those two actions.

Think of Blackhole sort of like a honeypot in terms of how it handles mail, but it’s specifically designed with testing in mind.


You can find the latest documentation here.

If you would like to contribute, please read the contributors guide.

The latest build status on travis.

And the test coverage report on codecov.


You can find a list of changes on the blackhole website.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for blackhole, version 2.1.15
Filename, size File type Python version Upload date Hashes
Filename, size blackhole-2.1.15-py3-none-any.whl (45.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size blackhole-2.1.15.tar.gz (32.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page