| .. class:: SMTPServer(localaddr, remoteaddr) |
| |
| Create a new :class:`SMTPServer` object, which binds to local address |
| *localaddr*. It will treat *remoteaddr* as an upstream SMTP relayer. It |
| inherits from :class:`asyncore.dispatcher`, and so will insert itself into |
| :mod:`asyncore`'s event loop on instantiation. |
| |
| |
n | .. method:: SMTPServer.process_message(peer, mailfrom, rcpttos, data) |
n | .. method:: process_message(peer, mailfrom, rcpttos, data) |
| |
t | Raise :exc:`NotImplementedError` exception. Override this in subclasses to do |
t | Raise :exc:`NotImplementedError` exception. Override this in subclasses to |
| something useful with this message. Whatever was passed in the constructor as |
| do something useful with this message. Whatever was passed in the |
| *remoteaddr* will be available as the :attr:`_remoteaddr` attribute. *peer* is |
| constructor as *remoteaddr* will be available as the :attr:`_remoteaddr` |
| the remote host's address, *mailfrom* is the envelope originator, *rcpttos* are |
| attribute. *peer* is the remote host's address, *mailfrom* is the envelope |
| the envelope recipients and *data* is a string containing the contents of the |
| originator, *rcpttos* are the envelope recipients and *data* is a string |
| e-mail (which should be in :rfc:`2822` format). |
| containing the contents of the e-mail (which should be in :rfc:`2822` |
| format). |
| |
| |
| DebuggingServer Objects |
| ----------------------- |
| |
| |
| .. class:: DebuggingServer(localaddr, remoteaddr) |
| |