Welcome to gsmtpd’s documentation!

gsmtpd server

gsmtpd is a SMTP server implement based on Gevent library, better in conccurence and more API

Example

from gevent import monkey
monkey.patch_all()

from gsmtpd.server import SMTPServer

class PrintSMTPServer(SMTPServer):

    def process_message(self, peer, mailfrom, rcpttos, data):
        print data

print_server = PrintSMTPServer()
print_server.serve_forever()

Contents:

Indices and tables