mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-28 17:26:14 +00:00
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:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user