Part of twisted.mail.relaymanager View Source View In Hierarchy
Known subclasses: twisted.mail.relaymanager.SmartHostESMTPRelayingManager
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 factory.
|
| fKwArgs | Additional keyword arguments used to instantiate factory.
| |
| factory | A callable which returns a ClientFactory suitable for making SMTP connections. |
| Method | __init__ | |
| 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. |
| Method | _checkStateMX | Undocumented |
| Method | _cbExchange | Undocumented |
| Method | _ebExchange | Undocumented |
| Parameters | queue | The object used to queue messages on their way to delivery.
(type: Any implementor of IQueue
) |
| maxConnections | The maximum number of SMTP connections to allow to be opened at any given
time.
(type: int
) | |
| maxMessagesPerConnection | 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:int
) |
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. | |