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

Method __init__ 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
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 at 2016-04-04 15:02:49.