interface documentation

class twisted.mail.interfaces.IDomain(Interface): (source)

Known subclasses: twisted.mail.interfaces.IAliasableDomain

Known implementations: twisted.mail.mail.BounceDomain

View In Hierarchy

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

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

Add a user to this domain.

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

Return credentials checkers for this domain.

ReturnsCredentials checkers for this domain. (type: list of ICredentialsChecker provider)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.