Mail::SPF (3)
Leading comments
Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28) Standard preamble: ========================================================================
NAME
Mail::SPF - An object-oriented implementation of Sender Policy FrameworkVERSION
2.009SYNOPSIS
use Mail::SPF; my $spf_server = Mail::SPF::Server->new(); my $request = Mail::SPF::Request->new( versions => [1, 2], # optional scope => 'mfrom', # or 'helo', 'pra' identity => 'fred@example.com', 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_explanation if $result->is_code('fail'); my $spf_header = $result->received_spf_header;
DESCRIPTION
Mail::SPF is an object-oriented implementation of Sender Policy Framework (SPF
). See <www.openspf.org> 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.
SEE ALSO
Mail::SPF::Server, Mail::SPF::Request, Mail::SPF::ResultFor availability, support, and license information, see the
README
file
included with Mail::SPF.
REFERENCES
- The SPFproject
- <www.openspf.org>
- The SPFv1 specification (RFC 4408)
- <www.openspf.org/Specifications>, <tools.ietf.org/html/rfc4408>