twisted.mail.smtp.SMTP.validateFrom(self, helo, origin)
method documentationtwisted.mail.smtp.SMTP
View Source
Validate the address from which the message originates.
Parameters | helo | The argument to the HELO command and the client's IP address. (type: (bytes, bytes) ) |
origin | The address the message is from (type: Address ) | |
Returns | origin or a Deferred whose callback will be passed origin . (type: Deferred or Address ) | |
Raises | SMTPBadSender | Raised of messages from this address are not to be accepted. |
Function | ebAuthentication | Translate cred exceptions into SMTP exceptions so that the protocol code which invokes validateFrom can properly report the failure. |
Function | continueValidation | Re-attempt from address validation. |
Translate cred exceptions into SMTP exceptions so that the protocol code which invokes validateFrom
can properly report the failure.