Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

SmtpPeerInRange

function SmtpPeerInRange(const aPeer, aRange: string): Boolean;
SmtpRoleName lives with tSmtpPortRole, in StreamSec.Mail.SMTPTransport, and is re-exported by using that unit. True when aPeer (a bare address as the listener reports it) falls inside aRange, which is an IPv4 address or CIDR. Anything this cannot parse as IPv4 is compared as text, so an IPv6 literal still matches itself exactly.