--- a/mod_s2s_keepalive/mod_s2s_keepalive.lua Wed Jul 21 15:52:12 2021 +0200
+++ b/mod_s2s_keepalive/mod_s2s_keepalive.lua Wed Jul 21 15:57:13 2021 +0200
@@ -70,6 +70,13 @@
if not (stanza.attr.id and stanza.attr.id:sub(1, #"keepalive:") == "keepalive:") then
return -- not a reply to this module
end
+ if stanza.attr.type == "error" then
+ local err = stanza:get_child("error");
+ local err_by = err and err.attr.by;
+ if err_by and prosody.hosts[err_by] then
+ return -- error produced by the local host
+ end
+ end
local origin = event.origin;
if origin.dummy then return end -- Probably a sendq bounce