commit 60a806d: [Minor] SPF: Fix external relay log message

Vsevolod Stakhov vsevolod at highsecure.ru
Mon May 3 20:21:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-05-03 21:18:53 +0100
URL: https://github.com/rspamd/rspamd/commit/60a806d99dd7c49bdfa2a50f0c1b70e3580b5385 (HEAD -> master)

[Minor] SPF: Fix external relay log message

---
 src/plugins/lua/spf.lua | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/plugins/lua/spf.lua b/src/plugins/lua/spf.lua
index 80d1e664d..0f3a17ea0 100644
--- a/src/plugins/lua/spf.lua
+++ b/src/plugins/lua/spf.lua
@@ -106,9 +106,10 @@ local function spf_check_callback(task)
       end
     end
     if not found then
-      rspamd_logger.warnx(task, "cannot find external relay with IP %s",
-          local_config.external_relay)
       ip = task:get_from_ip()
+      rspamd_logger.warnx(task,
+          "cannot find external relay for SPF checks in received headers; use the original IP: %s",
+          tostring(ip))
     end
   else
     ip = task:get_from_ip()


More information about the Commits mailing list