Find file
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (24 sloc) 750 Bytes SMTP Server for Humans

This is simplest SMTP server you'll ever see. It's asynchronous.

One instance should handle over one thousand emails per second, thanks to Gevent.


Give your app an inbox easily:

from inbox import Inbox

inbox = Inbox()

def handle(to, sender, subject, body):

# Bind directly.
inbox.serve(address='', port=4467)

You can also defer to the commandline:

if __name__ == '__main__':
$ 4467
[2012-04-28 07:31] INFO: inbox: Starting SMTP server at


Installing is simple:

$ pip install inbox