1 -- | This module contains the 'DnsblSite' data type representing one
2 -- blacklist with its associated return codes and multiplier. For example,
3 -- in Postfix's main.cf you might have,
5 -- postscreen_dnsbl_sites = bl.mailspike.net=127.0.0.[2;10;11]*2, ...
7 -- Here, the 'Domain' is \"bl.mailspike.net\", the return code
8 -- pattern is \"127.0.0.[2;10;11]\", and the multiplier is \"2".
13 import IPv4Pattern ( IPv4Pattern )
15 newtype Domain = Domain String
16 newtype Multiplier = Multiplier Int
18 data DnsblSite = DnsblSite Domain IPv4Pattern Multiplier