diff options
-rw-r--r-- | rules/misc.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index 78acdf910..e289215c9 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -442,6 +442,7 @@ rspamd_config.SPOOF_REPLYTO = { if not fromdom then return false end -- SMTP recipients must contain From domain local to = task:get_recipients(1) + if not to then return false end local found_fromdom = false for _, t in ipairs(to) do if util.strequal_caseless(t.domain, fromdom) then |