twisted.mail.protocols.ESMTPFactory(SMTPFactory)
class documentationtwisted.mail.protocols
View Source
(View In Hierarchy)
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 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. |
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. |
IOpenSSLContextFactory
or None
)
dict
mapping bytes
to no-argument callable which returns ICredentials
subclass provider.)
Parameters | args | Arguments for SMTPFactory.__init__ |
See Also | SMTPFactory.__init__ |