interface documentation
class IAliasableDomain(IDomain): (source)
Known implementations: twisted.mail.maildir.AbstractMaildirDomain
An interface for email domains which can be aliased to other domains.
Method | exists |
Check whether a user exists in this domain or an alias of it. |
Method | set |
Set the group of defined aliases for this domain. |
Inherited from IDomain
:
Method | add |
Add a user to this domain. |
Method | get |
Return credentials checkers for this domain. |
Inherited from IRealm
(via IDomain
):
Method | request |
Return avatar which provides one of the given interfaces. |
overrides
twisted.mail.interfaces.IDomain.exists
Check whether a user exists in this domain or an alias of it.
Parameters | |
user:User | A user. |
memo:None or dict of AliasBase | A record of the addresses already considered while resolving aliases. The default value should be used by all external code. |
Returns | |
no-argument callable which returns IMessageSMTP provider | A function which takes no arguments and returns a message receiver for the user. |
Raises | |
SMTPBadRcpt | When the given user does not exist in this domain or an alias of it. |