Mail::SPF3pm
An object-oriented implementation of sender policy framework
Usage
use Mail::SPF;my $spf_server = Mail::SPF::Server->new();my $request = Mail::SPF::Request->new(versions => [1, 2], # optionalscope => 'mfrom', # or 'helo', 'pra'identity => '[email protected]',ip_address => '192.168.0.1',helo_identity => 'mta.example.com' # optional,# for %{h} macro expansion);my $result = $spf_server->process($request);print("$result\n");my $result_code = $result->code; # 'pass', 'fail', etc.my $local_exp = $result->local_explanation;my $authority_exp = $result->authority_explanationif $result->is_code('fail');my $spf_header = $result->received_spf_header;
Version
version 3.20260331
Overview
Mail::SPF is an object-oriented implementation of Sender Policy Framework (SPF). See <https://tools.ietf.org/html/rfc7208> for more information about SPF.
This class collection aims to fully conform to the SPF specification (RFC 4408) so as to serve both as a production quality SPF implementation and as a reference for other developers of SPF implementations.
References
The SPF project
|
<http://www.open-spf.org/> |
|---|---|
The SPFv1 specification (RFC 7208)
|
<http://www.open-spf.org/Specifications>, <https://tools.ietf.org/html/rfc7208> |
Releases
10 releases since Debian 5.0 (Lenny); the text changed 7 times.