NAME

Mail::MIMEDefang::Authres - Authentication Results interface for MIMEDefang

DESCRIPTION

Mail::MIMEDefang::Authres is a module used to add Authentication Results headers from mimedefang-filter.

METHODS

md_authres

Returns a mail Authentication-Results header value. The method accepts the following parameters:

$email

The email address of the sender

$relayip

The relay ip address

$serverdomain

The domain name of the server where MIMEDefang is running on

$helo (optional)

The MTA helo server name

$bimi_domain (optional)

The From: header domain to use for BIMI lookup. When provided, a bimi= result (pass, none, declined, skipped, temperror or fail, see md_bimi_verify in Mail::MIMEDefang::BIMI) is appended to the Authentication-Results header.

md_org_domain

Returns the "organizational domain" of a domain name, for use in relaxed DMARC alignment checks (e.g. mail.example.com -> example.com, www.bank.co.uk -> bank.co.uk), using the Public Suffix List shipped with IO::Socket::SSL. Returns an empty string for an invalid domain or a public suffix. Without IO::Socket::SSL::PublicSuffix the domain itself is returned, which gives strict alignment.