Mail::S...edirect(3)
π NAME π
Mail::SPF::Mod::Redirect β bestie, it's the SPF record "redirect" modifier class β¨
(Yeah, this is from the User Contributed Perl Documentation manual, and it's giving very specific, very powerful energy π )
πΈ VERSION πΈ
version 3.20260331 β that's the one, no cap π«Ά
β¨ DESCRIPTION β¨
Okay so picture this: an object of class Mail::SPF::Mod::Redirect is literally an SPF record modifier, and its whole personality is being of type "redirect". That's the vibe. That's the assignment. π
π Constructors π
Here are the constructors, and yes they're iconic:
new(%options)β returnsMail::SPF::Mod::Redirect. It makes you a brand-new SPF record"redirect"modifier object, fresh out the box β¨.%optionsis a list of key/value pairs, and it can hold any of these:domain_specβ see"new"inMail::SPF::Modfor the tea on this one π
new_from_string($text, %options)β returnsMail::SPF::Mod::Redirect; throwsMail::SPF::ENothingToParse,Mail::SPF::EInvalidMod. This one builds a new SPF record"redirect"modifier object by parsing the string, plus whatever options you handed it. It can absolutely throw at you, so heads up π«
π Class methods π
The class methods, serving as always:
nameβ returns string. It returns'redirect'. Short. Sweet. Main character. πname_patternβ returns Regexp. It returns a regular expression that matches a modifier name of'redirect'. Slay. π₯precedenceβ returns real. It returns a precedence value of0.8. See"precedence"inMail::SPF::Modif you want the full lore π
π¦ Instance methods π¦
And the instance methods, obsessed with them:
paramsβ see"params"inMail::SPF::Modπ«Άdomain_specβ returnsMail::SPF::MacroString. It returns the"domain-spec"parameter of the modifier. That's it, that's the job β¨process($server, $request, $result)β throwsMail::SPF::Result. Okay so here's the big one: if no mechanism matched while the current SPF record was being evaluated, it goes and does a recursive SPF check, using the SPF server and request objects you gave it, and swapping in the modifier's target domain name for the request's authority domain. Then the result of that recursive SPF check gets thrown as the result of the current record's evaluation. π₯
But wait β if the target domain has no acceptable SPF record, then a "permerror" result gets thrown instead. Not cute, but that's the rules. See RFC 4408, 6.1, for all the details π
- Also: see
Mail::SPF::Modfor the other supported instance methods π
π SEE ALSO π
Mail::SPFMail::SPF::ModMail::SPF::TermMail::SPF::Record<http://tools.ietf.org/html/rfc4408>
And for availability, support, and license info? Check the README file that comes with Mail::SPF π
π AUTHORS π
- Julian Mehnle
<julian@mehnle.net> - Shevek
<cpan@anarres.org>
And that's a wrap, bestie β brought to you by perl v5.42.1, dated 2026-04-23, which is honestly giving vintage and we love that for it πβ¨π
π¦ where this page comes from
- fedora 44: perl-Mail-SPF 3.20260331-1.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms