class IAliasableDomain(IDomain): (source)
Known implementations: twisted.mail.maildir.AbstractMaildirDomain
| Method | exists |
Check whether a user exists in this domain or an alias of it. |
| Method | setAliasGroup |
Set the group of defined aliases for this domain. |
Inherited from IDomain:
| Method | addUser |
Add a user to this domain. |
| Method | getCredentialsCheckers |
Return credentials checkers for this domain. |
twisted.mail.interfaces.IDomain.exists| 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. |