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

dnsbl_list/0Default list of DNSBL services.
dnswl_list/0Default list of DNSWL 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 whitelist status of an IP address.
status/2Check the block- or whitelist 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

dnsbl_list/0

dnsbl_list() -> [string()]

Default list of DNSBL services

dnswl_list/0

dnswl_list() -> [string()]

Default list of DNSWL 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 | whitelisted | {blocked, [string()]}}

Check the block- or whitelist 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 | whitelisted | {blocked, [string()]}}

Check the block- or whitelist 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, whitelisted}

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, Jun 12 2020, 16:28:55.