NAME

Mail::MIMEDefang::Async::Checks - Pre-built check descriptors for Mail::MIMEDefang::Async

DESCRIPTION

Each function returns a check-hashref suitable for passing to md_async_run_checks(). Mix and match to build the checks your filter needs.

METHODS

md_async_check_dnsbl(%args)

Build a DNSBL A-record lookup check. Required args: ip, zone. Optional: name, timeout.

md_async_check_spf_record(%args)

Build an SPF TXT-record lookup check. Required: domain.

md_async_check_mx_exists(%args)

Build an MX-record existence check. Domains with no MX are often forged. Required: domain.

md_async_check_rdns(%args)

Build a reverse-DNS (PTR) lookup check. Required: ip.

md_async_check_dkim_record(%args)

Build an async lookup for a DKIM public-key TXT record at $selector._domainkey.$domain. Required: selector, domain.

The result is the raw TXT record string. Signature evaluation still happens synchronously via Mail::DKIM after the key is fetched.

md_async_check_dmarc_record(%args)

Build an async lookup for the DMARC TXT record at _dmarc.$domain. Required: domain.

Use md_async_interpret_dmarc() from Mail::MIMEDefang::Async::Results to parse the result.

SEE ALSO

Mail::MIMEDefang::Async, Mail::MIMEDefang::Async::Results