Mail::S...Mech::MX(3)
π Mail::SPF::Mech::MX π
okay bestie, welcome to the perl manual page for Mail::SPF::Mech::MX β yes that's the User Contributed Perl Documentation section, we're in the 3rd volume of the man pages, and no we are NOT scared of it. π«Ά
β¨ NAME β¨
Mail::SPF::Mech::MX β the SPF record mx mechanism class, periodt. π
πΈ VERSION πΈ
version 3.20260331
π¦ DESCRIPTION π¦
so like. an object of class Mail::SPF::Mech::MX represents an SPF record mechanism of type mx. that's it, that's the whole vibe check. β¨
π Constructors π
these are the constructors, bestie, come get your constructors:
new(%options)β returnsMail::SPF::Mech::MXCreates a shiny new SPF recordmxmechanism object. π
%options is a list of key/value pairs representing any of these options right here:
qualifierdomain_specipv4_prefix_lengthipv6_prefix_length
(go see "new" in Mail::SPF::Mech for the deets, iykyk π)
new_from_string($text, %options)β returnsMail::SPF::Mech::MX; throwsMail::SPF::ENothingToParse,Mail::SPF::EInvalidMechCreates a new SPF recordmxmechanism object by parsing the string and any options you hand it. it's giving "read the room and also the string". π₯
heads up: this one can literally throwMail::SPF::ENothingToParseorMail::SPF::EInvalidMechat you. not a drill. π
π Class methods π
these are the class methods, and they ate:
default_qualifierdefault_ipv4_prefix_lengthdefault_ipv6_prefix_lengthqualifier_pattern
(all of these? see "Class methods" in Mail::SPF::Mech. π)
nameβ returns string Returns'mx'. that's the whole thing. iconic behavior honestly.name_patternβ returns Regexp Returns a regular expression that matches a mechanism name of'mx'. regex girlies rise. π§
π Instance methods π
the instance methods, your main characters:
textqualifierparamsstringifydomainmatch_in_domain
(all covered over in "Instance methods" in Mail::SPF::Mech β go look, bestie π«Ά)
domain_specβ returnsMail::SPF::MacroStringReturns thedomain-specparameter of the mechanism. slay.ipv4_prefix_lengthβ returns integer Returns the IPv4 network prefix length of the mechanism. π’ipv6_prefix_lengthβ returns integer Returns the IPv6 network prefix length of the mechanism. β¨match($server, $request)β returns boolean Checks whether any MX hosts of the mechanism's target domain name (that is, any of the host addresses of its DNSMXrecords) matches the given request's IP address (see"ip_address" in Mail::SPF::Request), and returns true if it does, or false otherwise. the mechanism's IP network prefix lengths are respected when matching address records against the request's IP address. and if you want the exact algorithm used? see RFC 4408, 5 and 5.4. no cap. π
π SEE ALSO π
Mail::SPFMail::SPF::RecordMail::SPF::TermMail::SPF::Mech- <http://tools.ietf.org/html/rfc4408>
for availability, support, and license information, see the README file included with Mail::SPF. π
β AUTHORS β
Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>
and that's the whole page, bestie!! this gorgeous little manpage was brought to you by perl v5.42.1, dated 2026-04-23, and it lives at Mail::S...Mech::MX(3) in the User Contributed Perl Documentation section. mwah π
β¨π
π¦ 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