Documentation

NAME

Mail::MIMEDefang::SPF - Sender Policy Framework interface for MIMEDefang

DESCRIPTION

Mail::MIMEDefang::SPF is a module used to check for Sender Policy Framework headers from mimedefang-filter.

METHODS

  • md_spf_verify

    In list context, returns code and explanation of Sender Policy Framework check. Additional optional return values are code and explanation of helo SPF query, 5th and 6th return values are the SPF dns records if they are available;

    Possible return code values are: "pass", "fail", "softfail", "neutral", "none", "error", "permerror", "temperror", "invalid"

    In scalar context, returns a hashref instead, with the following keys: code, local_explanation, helo_code, helo_local_explanation, record, helo_record (same information as the list-context return values above), plus dns_lookups and helo_dns_lookups, the number of DNS-interactive SPF terms (mechanisms/modifiers) evaluated while resolving the mfrom and helo checks respectively (RFC 7208 section 4.6.4 imposes a default limit of 10 on this count; this module raises the limit to 20).

    The method accepts the following parameters:

    • $email

      The email address of the sender

    • $relayip

      The relay ip address

    • $helo (optional)

      The MTA helo server name