class documentation

class twisted.mail.relay.DomainQueuer: (source)

View In Hierarchy

An SMTP domain which add messages to a queue intended for relaying.

Method __init__ Undocumented
Instance Variable service Undocumented
Instance Variable authed Undocumented
Method exists Check whether mail can be relayed to a user.
Method willRelay Check whether we agree to relay.
Method startMessage Create an envelope and a message receiver for the relay queue.
def __init__(self, service, authenticated=False): (source)

Undocumented

service = (source)

Undocumented

authed = (source)

Undocumented

def exists(self, user): (source)

Check whether mail can be relayed to a user.

ParametersuserA user. (type: User)
ReturnsA function which takes no arguments and returns a message receiver for the user. (type: no-argument callable which returns IMessage provider)
RaisesSMTPBadRcptWhen mail cannot be relayed to the user.
def willRelay(self, address, protocol): (source)

Check whether we agree to relay.

The default is to relay for all connections over UNIX sockets and all connections from localhost.

def startMessage(self, user): (source)

Create an envelope and a message receiver for the relay queue.

ParametersuserA user. (type: User)
ReturnsA message receiver. (type: IMessage)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.