Files
kumomta/docs/reference/policy-extras.mail_auth/iprev_msg.md
T
Wez Furlong 4c6d7ca8ea add policy-extras.mail_auth module
This aggregates the various authentication-results producing auth checks
into a more convenient function.

Part of this change improves some plumbing in the dkim checking (we no
longer raise an error for a missing From, but instead indicate a failed
dkim result), and we now support passing down a resolver name to the
various checking functions, to facilitate testing and other more
advanced use cases.

refs: https://github.com/KumoCorp/kumomta/issues/16
refs: https://github.com/KumoCorp/kumomta/issues/84
2025-11-02 11:56:57 +00:00

594 B

iprev_msg

{{since('dev')}}

local mail_auth = require 'policy-extras.mail_auth'
local auth_result = mail_auth.iprev(MSG)

The mail_auth.iprev function performs the iprev authentication method as specified by RFC8601 Section 3, and returns an AuthenticationResult representing the status of the check.

The MSG parameter is a Message object.

See mail_auth.iprev for a version of this check at accepts an IP address without needing a message object.