]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] SPF: Fix external relay log message
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 3 May 2021 20:18:53 +0000 (21:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 3 May 2021 20:18:53 +0000 (21:18 +0100)
src/plugins/lua/spf.lua

index 80d1e664d4628efa0727a757e45bbc583f7150e4..0f3a17ea0796179c86ce04dbd86b334243c9db61 100644 (file)
@@ -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()