An ESMTP server protocol factory.

Instance Variable protocol A callable which creates a protocol. The default value is ESMTP. (type: no-argument callable which returns a Protocol subclass)
Instance Variable context A factory to generate contexts to be used in negotiating encrypted communication. (type: IOpenSSLContextFactory or None)
Instance Variable challengers A mapping of acceptable authorization mechanism to callable which creates credentials to use for authentication. (type: dict mapping bytes to no-argument callable which returns ICredentials subclass provider.)
Method __init__
Method buildProtocol Create an instance of an ESMTP server protocol.

Inherited from SMTPFactory:

Instance Variable service See __init__
Instance Variable portal See __init__

Inherited from Factory (via SMTPFactory, SMTPFactory, ServerFactory):

Class Method forProtocol Create a factory for the given protocol.
Method logPrefix Describe this factory for log messages.
Method doStart Make sure startFactory is called.
Method doStop Make sure stopFactory is called.
Method startFactory This will be called before I begin listening on a Port or Connector.
Method stopFactory This will be called before I stop listening on all Ports/Connectors.
protocol =
A callable which creates a protocol. The default value is ESMTP. (type: no-argument callable which returns a Protocol subclass)
context =
A factory to generate contexts to be used in negotiating encrypted communication. (type: IOpenSSLContextFactory or None)
challengers =
A mapping of acceptable authorization mechanism to callable which creates credentials to use for authentication. (type: dict mapping bytes to no-argument callable which returns ICredentials subclass provider.)
def __init__(self, *args):
def buildProtocol(self, addr):

Create an instance of an ESMTP server protocol.

ParametersaddrThe address of the ESMTP client. (type: IAddress provider)
ReturnsAn ESMTP protocol. (type: ESMTP)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.