From 376ef760225ff61a9cc97fbf3a9d45c70331e5ec Mon Sep 17 00:00:00 2001 From: Sven Michels Date: Mon, 19 Jul 2021 12:09:32 +0200 Subject: [PATCH] [Rspamd] Add soft reject on task timeout (#4189) As we have seen issues in DNS processing actually stops rspamd from processing a message, which leads to missing tag insertion for example, we turn on soft reject on task timeout. Behavior is the same as with greylisting for example, so the mail will be delayed/soft rejected, but as DNS issues usually are most likely temporarily, it should get delivered on the second try. --- data/conf/rspamd/local.d/options.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/conf/rspamd/local.d/options.inc b/data/conf/rspamd/local.d/options.inc index eb6de538..fcf499d7 100644 --- a/data/conf/rspamd/local.d/options.inc +++ b/data/conf/rspamd/local.d/options.inc @@ -3,3 +3,6 @@ dns { } map_watch_interval = 30s; disable_monitoring = true; +# In case a task times out (like DNS lookup), soft reject the message +# instead of silently accepting the message without further processing. +soft_reject_on_timeout = true;