Skip to main content

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

Project description

Latest version released on PyPi Test coverage Build status of the master branch Chat on Gitter

About

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

Blackhole is built on top of asyncio and utilises async def and await statements available in Python 3.5 and above.

While Blackhole is an MTA (mail transport agent), none of the actions performed via SMTP or SMTPS are actually processed and no email or sent or 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. No matter how you choose to configure it, the email is never actually delivered, it just appears to have been delivered or bounced.

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

Python < 3.5

The original incarnation of Blackhole – built on top of Tornado – is still available for use on Python versions lower than 3.5, including PyPy.

It is no longer maintained however, but is available for posterity’s sake on blackhole.io/1 and GitHub.

Why?

Blackhole was first built when I was working on a project that required me to be able to send/receive millions of emails per minute. As the sender was being prototyped, I quickly realised that any mail server I pointed it at would fall over due to the stess – thus blackhole was born.

Documentation

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.

Project details


Download files

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

Source Distribution

blackhole-2.0.4.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blackhole-2.0.4-py2.py3-none-any.whl (26.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file blackhole-2.0.4.tar.gz.

File metadata

  • Download URL: blackhole-2.0.4.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for blackhole-2.0.4.tar.gz
Algorithm Hash digest
SHA256 d22c37beb8ec8a7d25043e4a931c1f36114e7e5515c0da0b8ee98064aada6506
MD5 e45c7a178673aa612717543aad9feabe
BLAKE2b-256 6e6655e44ff2713e78c7ce97e47e1677ddb5e8bd5f37ce98f982ec9e38700dab

See more details on using hashes here.

File details

Details for the file blackhole-2.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for blackhole-2.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6ef034c1530785ae65f62d567692c6e1369689d8d7efd6916d26e2956934ff55
MD5 7375ec18f03cad6db4c51bfd372ca327
BLAKE2b-256 e67677db45009e79c2f0107bf7b50007a21c135b5be36a9374b3acdf95e8adde

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page