Skip to main content

A simple smtp and webserver for throwaway email addresses

Project description

Mailbox Zero

Can't reach Inbox Zero? Just create a new one.

MailboxZero is a server that provides you an infinite number of mailboxes that you can check via a REST API.

It combines a SMTP server that accepts incoming emails and a web server that provides access to the emails over a REST API.

How to use it

mb0.wtte.ch is a demo instance of MailboxZero

  1. Send an email to somerandomstring@mb0.wtte.ch
  2. Visit http://mb0.wtte.ch:8880/api/somerandomstring@mb0.wtte.ch for a list of messages in your mailbox
  3. Retrieve an individual message by visiting http://mb0.wtte.ch:8880/api/somerandomstring@mb0.wtte.ch/<messageID>

Messages get deleted about ten minutes after arriving. You get a parsed version of the email, not the raw email. MailboxZero will show you:

  • the richest body, usually the HTML version
  • the simplest body, usually the plain text version
  • the URLs in each body
  • the headers of the email as a list of (name, value) pairs
  • the subject, from and date fields

Deploying your own instance

Quick start:

  1. Install Python 3.8 or newer
  2. Install MailboxZero pip install -U mailboxzero
  3. Run mailboxzero as root.

To run an instance reachable from the public internet you need a public IP, assign a hostname to it, and setup a MX record to point to that hostname. You should also use something like systemd to run MailboxZero in order to limit its privileges and not run it as root.

Development

Setup the development dependencies with python -m pip install -U -r dev-requirements.txt. We use pytest to run the tests in tests/.

Main libraries used:

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

mailboxzero-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

mailboxzero-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file mailboxzero-0.0.1.tar.gz.

File metadata

  • Download URL: mailboxzero-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for mailboxzero-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d327cb575c909001b22d3d761d0d23a8caca6cf98620c5e6915aa4163415fc9e
MD5 acd4d0b474d4a9a17f3f520fa00585cf
BLAKE2b-256 57218d0cd49083c095c453957b1e5d8ffa72fecbe9ea6a61dcbabfba1ec08459

See more details on using hashes here.

File details

Details for the file mailboxzero-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mailboxzero-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for mailboxzero-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b50003ef7664f35fe08ed3e670cc99e0c42b047c7cfcdf748a3a39ba66c05b5
MD5 5341aa3a403116de4c07f434d3afcd0b
BLAKE2b-256 e45234f4e852dbff3569459b4b031dc3bf6a4a628a2a799f8646eb9ea9a6bf80

See more details on using hashes here.

Supported by

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