class documentation

class BounceDomain: (source)

Implements interfaces: twisted.mail.interfaces.IDomain

View In Hierarchy

A domain with no users.

This can be used to block off a domain.

Method addUser Ignore attempts to add a user to this domain.
Method exists Raise an exception to indicate that the user does not exist in this domain.
Method getCredentialsCheckers Return no credentials checkers for this domain.
Method willRelay Indicate that this domain will not relay.
def addUser(self, user, password): (source)
Ignore attempts to add a user to this domain.
Parameters
user:bytesA username.
password:bytesA password.
def exists(self, user): (source)
Raise an exception to indicate that the user does not exist in this domain.
Parameters
user:UserA user.
Raises
SMTPBadRcptWhen the given user does not exist in this domain.
def getCredentialsCheckers(self): (source)
Return no credentials checkers for this domain.
Returns
listThe empty list.
def willRelay(self, user, protocol): (source)
Indicate that this domain will not relay.
Parameters
user:AddressThe destination address.
protocol:ProtocolThe protocol over which the message to be relayed is being received.
Returns
boolFalse.