General-Purpose Mail Filter
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’.
match_dnsbl, require the match_dnsbl module
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
This function raises the following exceptions:
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).
E-mail address, whose domain name should be tested (usually, it is
Domain name of the RHS DNS blacklist zone.
The range of IP addresses in CIDR notation.
This document was generated on January 3, 2019 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.