1Mail::MIMEDefang::Net(3M)ail::MIMEDefang::Net DocumentatiMoanil::MIMEDefang::Net(3)
2
3
4

NAME

6       Mail::MIMEDefang::Net - Network related methods for email filters
7

DESCRIPTION

9       Mail::MIMEDefang::Net are a set of methods that can be called from
10       mimedefang-filter to call network related services.
11

METHODS

13       expand_ipv6_address
14           Method that returns an IPv6 address with all zero fields explicitly
15           expanded, any field shorter than 4 hex digits will be padded with
16           zeros.
17
18       reverse_ip_address_for_rbl
19           Method that returns the ip address in the appropriately-reversed
20           format used for RBL lookups.
21
22       relay_is_blacklisted
23           Method that returns the result of the lookup (eg 127.0.0.2).
24           Parameters are the ip address of the relay host and the domain of
25           the rbl server.
26
27       email_is_blacklisted
28           Method that returns the result of the lookup (eg 127.0.0.2).
29           Parameters are an email address, the domain of the hashbl server,
30           and the type of hashing (MD5 or SHA1).
31
32       is_public_ip4_address $ip_addr
33           Returns true if $ip_addr is a publicly-routable IPv4 address, false
34           otherwise
35
36       is_public_ip6_address $ip_addr
37           Returns true if $ip_addr is a publicly-routable IPv6 address, false
38           otherwise
39
40       get_mx_ip_addresses $domain [$resolver_object]
41           Get IP addresses of all MX hosts for given domain.  If there are no
42           MX hosts, then return A records.
43
44       md_get_bogus_mx_hosts $domain
45           Returns a list of "bogus" IP addresses that are in $domain's list
46           of MX records.  A "bogus" IP address is
47           loopback/private/multicast/etc.
48
49       relay_is_blacklisted_multi
50           Method that rerurns a hash table with one entry per original
51           domain.  Entries in hash will be: "{ $domain =<gt" $return }>,
52           where $return is one of SERVFAIL, NXDOMAIN or a list of IP
53           addresses as a dotted-quad.
54
55       relay_is_blacklisted_multi_count
56           Method that returns a number indicating how many RBLs the host was
57           blacklisted in.
58
59       relay_is_blacklisted_multi_list
60           Method that returns an array indicating the domains in which the
61           relay is blacklisted.
62
63
64
653.4.1                             2023-07-20          Mail::MIMEDefang::Net(3)
Impressum