1Mail::SPF::Mech::PTR(3)User Contributed Perl DocumentatioMnail::SPF::Mech::PTR(3)
2
3
4

NAME

6       Mail::SPF::Mech::PTR - SPF record "ptr" mechanism class
7

DESCRIPTION

9       An object of class Mail::SPF::Mech::PTR represents an SPF record
10       mechanism of type "ptr".
11
12   Constructors
13       The following constructors are provided:
14
15       new(%options): returns Mail::SPF::Mech::PTR
16           Creates a new SPF record "ptr" mechanism object.
17
18           %options is a list of key/value pairs representing any of the
19           following options:
20
21           qualifier
22           domain_spec
23               See "new" in Mail::SPF::Mech.
24
25       new_from_string($text, %options): returns Mail::SPF::Mech::PTR; throws
26       Mail::SPF::ENothingToParse, Mail::SPF::EInvalidMech
27           Creates a new SPF record "ptr" mechanism object by parsing the
28           string and any options given.
29
30   Class methods
31       The following class methods are provided:
32
33       default_qualifier
34       qualifier_pattern
35           See "Class methods" in Mail::SPF::Mech.
36
37       name: returns string
38           Returns 'ptr'.
39
40       name_pattern: returns Regexp
41           Returns a regular expression that matches a mechanism name of
42           'ptr'.
43
44   Instance methods
45       The following instance methods are provided:
46
47       text
48       qualifier
49       params
50       stringify
51           See "Instance methods" in Mail::SPF::Mech.
52
53       domain_spec: returns Mail::SPF::MacroString
54           Returns the "domain-spec" parameter of the mechanism.
55
56       match($server, $request): returns boolean
57           Checks whether the mechanism's target domain name, or a sub-domain
58           thereof, is a "valid" domain name for the given request's IP
59           address (see "ip_address" in Mail::SPF::Request), and returns true
60           if it does, or false otherwise.  See "valid_domain_for_ip_address"
61           in Mail::SPF::Util for how domains are validated.  See RFC 4408,
62           5.5, for the description of an equivalent algorithm.
63

SEE ALSO

65       Mail::SPF, Mail::SPF::Record, Mail::SPF::Term, Mail::SPF::Mech
66
67       <http://tools.ietf.org/html/rfc4408>
68
69       For availability, support, and license information, see the README file
70       included with Mail::SPF.
71

AUTHORS

73       Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>
74
75
76
77perl v5.32.0                      2020-07-28           Mail::SPF::Mech::PTR(3)
Impressum