spf: populate smtp.mailfrom in Auth-Results, add check_msg func

Add a convenience function that is intended to be used around the
time that you might be building up the overall set of
Authentication-Results.

Populate missing smtp.mailfrom in SPF authentication result.
This commit is contained in:
Wez Furlong
2025-10-21 21:25:21 +01:00
parent 10ab901174
commit 6fc0d782ff
5 changed files with 153 additions and 40 deletions
+1 -5
View File
@@ -70,11 +70,7 @@ end)
kumo.on('smtp_server_message_received', function(msg, conn_meta)
msg:set_meta('queue', 'maildir')
local result = kumo.spf.check_host(
msg:sender().domain,
conn_meta,
tostring(msg:sender())
)
local result = kumo.spf.check_msg(msg)
local results = {
result.result,
}