This class encapsulates a VRFY/RCPT based validity checker to transparently verify the existence of e-mail addresses. Instead of immediately sending the e-mail to the recipient SMTP server, an independent SMTP server is queried about the existence of the recipient e-mail address.
Instances of this class can be referred to in the recipient_matcher
attribute of the SmtpProxy class. The SmtpProxy
will automatically reject unknown recipients even if the recipient SMTP
server would accept them.
Example 5.25. SmtpInvalidMatcher example |
---|
Python: class SmtpRecipientMatcherProxy(SmtpProxy): recipient_matcher="SmtpCheckrecipient" def config(self): super(SmtpRecipientMatcherProxy, self).config() MatcherPolicy(name="SmtpCheckrecipient", matcher=SmtpInvalidRecipientMatcher (server_port=25, cache_timeout=60, force_delivery_attempt=FALSE, server_name="recipientcheck.example.com")) |
© 2021 BalaSys IT Security.
Send your comments to support@balasys.hu