You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mailboxzero

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailboxzero

A simple smtp and webserver for throwaway email addresses

0.0.1
pipPyPI
Maintainers
1

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

  • Send an email to somerandomstring@mb0.wtte.ch
  • Visit http://mb0.wtte.ch:8880/api/somerandomstring@mb0.wtte.ch for a list of messages in your mailbox
  • 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:

  • Install Python 3.8 or newer
  • Install MailboxZero pip install -U mailboxzero
  • 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:

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts