Next: SPF Functions, Previous: Mail Sending Functions, Up: Library [Contents][Index]
The functions described in this subsection allow to check whether the given IP address is listed in certain black list DNS zone.
This function looks up address in the DNS blacklist zone zone and checks if the return falls into the given range of IP addresses.
It is intended as a replacement for the Sendmail macros ‘dnsbl’ and ‘enhdnsbl’.
To use match_dnsbl
, require the match_dnsbl module
(see Modules).
Arguments:
IP address of the SMTP server to be tested.
FQDN of the DNSbl zone to test against.
The range of IP addresses in CIDR notation or the word ‘ANY’, which stands for ‘127.0.0.0/8’.
The function returns true
if dns lookup for address in
the zone dnsbl yields an IP that falls within the range,
specified by cidr. Otherwise, it returns false
.
This function raises the following exceptions: e_invip
if
address is invalid and e_invcidr
if cidr is invalid.
This function checks if the IP address, corresponding to the domain part of email is listed in the RHS DNS blacklist zone zone, and if so, whether its record falls into the given range of IP addresses range.
It is intended as a replacement for the Sendmail macro ‘rhsbl’ by Derek J. Balling.
To use this function, require the match_rhsbl module (see Modules).
Arguments:
E-mail address, whose domain name should be tested (usually, it is
$f
)
Domain name of the RHS DNS blacklist zone.
The range of IP addresses in CIDR notation.
Next: SPF Functions, Previous: Mail Sending Functions, Up: Library [Contents][Index]