Create a newSMTPServer object, which binds to local addresslocaladdr. It will treatremoteaddr as an upstream SMTPrelayer. It inherits fromasyncore.dispatcher, and so willinsert itself intoasyncore's event loop on instantiation.
process_message(
peer, mailfrom, rcpttos, data)
RaiseNotImplementedError exception. Override this insubclasses to do something useful with this message. Whatever waspassed in the constructor asremoteaddr will be available as the_remoteaddr attribute.peer is the remote host's address,mailfrom is the envelope originator,rcpttos are theenvelope recipients anddata is a string containing the contentsof the e-mail (which should be inRFC 2822 format).