Implements interfaces: twisted.mail.interfaces.IDomain

A domain with no users.

This can be used to block off a domain.

Method exists Raise an exception to indicate that the user does not exist in this domain.
Method willRelay Indicate that this domain will not relay.
Method addUser Ignore attempts to add a user to this domain.
Method getCredentialsCheckers Return no credentials checkers for this domain.
def exists(self, user):

Raise an exception to indicate that the user does not exist in this domain.

ParametersuserA user. (type: User)
RaisesSMTPBadRcptWhen the given user does not exist in this domain.
def willRelay(self, user, protocol):

Indicate that this domain will not relay.

ParametersuserThe destination address. (type: Address)
protocolThe protocol over which the message to be relayed is being received. (type: Protocol)
ReturnsFalse. (type: bool)
def addUser(self, user, password):

Ignore attempts to add a user to this domain.

ParametersuserA username. (type: bytes)
passwordA password. (type: bytes)
def getCredentialsCheckers(self):

Return no credentials checkers for this domain.

ReturnsThe empty list. (type: list)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.