Known implementations: twisted.mail.maildir.AbstractMaildirDomain

An interface for email domains which can be aliased to other domains.

Method setAliasGroup Set the group of defined aliases for this domain.
Method exists Check whether a user exists in this domain or an alias of it.

Inherited from IDomain:

Method addUser Add a user to this domain.
Method getCredentialsCheckers Return credentials checkers for this domain.
def setAliasGroup(aliases): (source)

Set the group of defined aliases for this domain.

ParametersaliasesA mapping of domain name to alias. (type: dict of bytes -> IAlias provider)
def exists(user, memo=None): (source)

Check whether a user exists in this domain or an alias of it.

ParametersuserA user. (type: User)
memoA record of the addresses already considered while resolving aliases. The default value should be used by all external code. (type: NoneType or dict of AliasBase)
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 or an alias of it.
API Documentation for Twisted, generated by pydoctor at 2016-05-18 16:01:36.