Known subclasses: twisted.mail.interfaces.IAliasableDomain

Known implementations: twisted.mail.mail.BounceDomain

An interface for email domains.

Method exists Check whether a user exists in this domain.
Method addUser Add a user to this domain.
Method getCredentialsCheckers Return credentials checkers for this domain.
def exists(user):

Check whether a user exists in this domain.

ParametersuserA user. (type: User)
ReturnsA function which takes no arguments and returns a message receiver for the user. (type: no-argument callable which returns IMessageSMTP provider)
RaisesSMTPBadRcptWhen the given user does not exist in this domain.
def addUser(user, password):

Add a user to this domain.

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

Return credentials checkers for this domain.

ReturnsCredentials checkers for this domain. (type: list of ICredentialsChecker provider)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.