domain-auth-0.1.0: Domain authentication library

Network.DomainAuth.SPF

Description

Synopsis

Documentation

runSPF :: Limit -> Resolver -> Domain -> IP -> IO DAResultSource

Process SPF authentication. IP is an IP address of an SMTP peer. If Domain is specified from SMTP MAIL FROM, authentication is based on SPF. If Domain is specified from the From field of mail header, authentication is based on SenderID. If condition reaches Limit, SpfPermError is returned.

data Limit Source

Limit for SPF authentication.

Constructors

Limit 

Fields

limit :: Int

How many "redirect"/"include" should be followed.

ipv4_masklen :: Int

Ignoring IPv4 range whose mask length is shorter than this.

ipv6_masklen :: Int

Ignoring IPv6 range whose mask length is shorter than this.

reject_plus_all :: Bool

Whether or not "+all" is rejected.