1Mail::SPF(3)          User Contributed Perl Documentation         Mail::SPF(3)
2
3
4

NAME

6       Mail::SPF - An object-oriented implementation of Sender Policy
7       Framework
8

VERSION

10       2.008
11

SYNOPSIS

13           use Mail::SPF;
14
15           my $spf_server  = Mail::SPF::Server->new();
16
17           my $request     = Mail::SPF::Request->new(
18               versions        => [1, 2],              # optional
19               scope           => 'mfrom',             # or 'helo', 'pra'
20               identity        => 'fred@example.com',
21               ip_address      => '192.168.0.1',
22               helo_identity   => 'mta.example.com'    # optional,
23                                                       #   for %{h} macro expansion
24           );
25
26           my $result      = $spf_server->process($request);
27
28           print("$result\n");
29           my $result_code     = $result->code;        # 'pass', 'fail', etc.
30           my $local_exp       = $result->local_explanation;
31           my $authority_exp   = $result->authority_explanation
32               if $result->is_code('fail');
33           my $spf_header      = $result->received_spf_header;
34

DESCRIPTION

36       Mail::SPF is an object-oriented implementation of Sender Policy
37       Framework (SPF).  See <http://www.openspf.net> for more information
38       about SPF.
39
40       This class collection aims to fully conform to the SPF specification
41       (RFC 4408) so as to serve both as a production quality SPF
42       implementation and as a reference for other developers of SPF
43       implementations.
44

SEE ALSO

46       Mail::SPF::Server, Mail::SPF::Request, Mail::SPF::Result
47
48       For availability, support, and license information, see the README file
49       included with Mail::SPF.
50

REFERENCES

52       The SPF project
53           <http://www.openspf.net>
54
55       The SPFv1 specification (RFC 4408)
56           <http://www.openspf.net/Specifications>,
57           <http://tools.ietf.org/html/rfc4408>
58

AUTHORS

60       Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>
61
62
63
64perl v5.16.3                      2014-06-10                      Mail::SPF(3)
Impressum