Part of twisted.mail.relaymanager View Source View In Hierarchy
Known subclasses: twisted.mail.relaymanager.SmartHostESMTPRelayingManager
Manage SMTP Relayers
Manage SMTP relayers, keeping track of the existing connections, each connection's responsibility in term of messages. Create more relayers if the need arises.Someone should press .checkState periodically
|Instance Variables||fArgs||Additional positional arguments used to instantiate
|fKwArgs||Additional keyword arguments used to instantiate
|factory||A callable which returns a ClientFactory suitable for making SMTP connections.|
|Method||__getstate__||(internal) delete volatile state|
|Method||__setstate__||(internal) restore volatile state|
|Method||checkState||Synchronize with the state of the world, and maybe launch a new relay.|
|Parameters||queue||The object used to queue messages on their way to delivery.
(type: Any implementor of |
|maxConnections||The maximum number of SMTP connections to allow to be opened at any
The maximum number of messages a relayer will be given responsibility for.Default values are meant for a small box with 1-5 users. (type:
Synchronize with the state of the world, and maybe launch a new relay.Call me periodically to check I am still up to date.
|Returns||None or a Deferred which fires when all of the SMTP clients started by this call have disconnected.|