Module z_email_dnsbl

Check an IP address against some DNSBL providers (rfc5782).

Copyright © 2015-2020 Marc Worrell

Authors: Marc Worrell.

Description

Check an IP address against some DNSBL providers (rfc5782)

Function Index

dns_allowlist/0Default list of DNSWL services.
dns_blocklist/0Default list of DNSBL services.
is_blocked/1Check if the IP address is on one of the default blocklists.
is_blocked/2Check if the IP address is on one of the givem blocklists.
is_blocked/3Check if the IP address is on one of the givem blocklists and not on one of the white lists.
status/1Check the block- or allowlist status of an IP address.
status/2Check the block- or allowlist status of an IP address with the given block lists.
status/3Check the block- or whitelist status of an IP address with the given block- and whitelists.

Function Details

dns_allowlist/0

dns_allowlist() -> [string()]

Default list of DNSWL services

dns_blocklist/0

dns_blocklist() -> [string()]

Default list of DNSBL services

is_blocked/1

is_blocked(IP::inet:ip_address()) -> boolean()

Check if the IP address is on one of the default blocklists.

is_blocked/2

is_blocked(IP::inet:ip_address(), RTBLs::[string()]) -> boolean()

Check if the IP address is on one of the givem blocklists.

is_blocked/3

is_blocked(IP::inet:ip_address(), RTBLs::[string()], WLs::[string()]) -> boolean()

Check if the IP address is on one of the givem blocklists and not on one of the white lists. If an IP address is white listen then this routine always return true.

status/1

status(IP::inet:ip_address()) -> {ok, notlisted | allowed | {blocked, [string()]}}

Check the block- or allowlist status of an IP address. If it is blocked then the blocklists where the IP address is blocked are returned.

status/2

status(IP::inet:ip_address(), DNSBLs::list()) -> {ok, notlisted | allowed | {blocked, [string()]}}

Check the block- or allowlist status of an IP address with the given block lists. If it is blocked then the blocklists where the IP address is blocked are returned.

status/3

status(IP::inet:ip_address(), DNSBLs::list(), DNSWLs::list()) -> {ok, {blocked, list()}} | {ok, notlisted} | {ok, allowed}

Check the block- or whitelist status of an IP address with the given block- and whitelists. If it is blocked then the blocklists where the IP address is blocked are returned.


Generated by EDoc