t.m.m.IDomain(Interface) : interface documentation

Part of twisted.mail.mail View Source View In Hierarchy

Known subclasses: twisted.mail.mail.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): (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 IMessage 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 at 2015-04-13 15:26:48.