interface documentation

class IDomain(Interface): (source)

Known subclasses: twisted.mail.interfaces.IAliasableDomain

Known implementations: twisted.mail.mail.BounceDomain

View In Hierarchy

An interface for email domains.
Method addUser Add a user to this domain.
Method exists Check whether a user exists in this domain.
Method getCredentialsCheckers Return credentials checkers for this domain.
def addUser(user, password): (source)
Add a user to this domain.
Parameters
user:bytesA username.
password:bytesA password.
def exists(user): (source)
Check whether a user exists in this domain.
Parameters
user:UserA user.
Returns
no-argument callable which returns IMessageSMTP providerA function which takes no arguments and returns a message receiver for the user.
Raises
SMTPBadRcptWhen the given user does not exist in this domain.
def getCredentialsCheckers(): (source)
Return credentials checkers for this domain.
Returns
list of ICredentialsChecker providerCredentials checkers for this domain.