aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-03 21:18:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-03 21:18:53 +0100
commit60a806d99dd7c49bdfa2a50f0c1b70e3580b5385 (patch)
tree68bd5b21dd7c6941cc0d621843524bb57981063a
parentfbe6bf7a0ab445600b3a43562bdec94c491bd64b (diff)
downloadrspamd-60a806d99dd7c49bdfa2a50f0c1b70e3580b5385.tar.gz
rspamd-60a806d99dd7c49bdfa2a50f0c1b70e3580b5385.zip
[Minor] SPF: Fix external relay log message
-rw-r--r--src/plugins/lua/spf.lua5
1 files 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()