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):
Undocumented
def exists(self, user):

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):

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):

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 2020-03-25 17:34:30.