From: Mark Wooding Date: Fri, 27 Sep 2024 08:27:47 +0000 (+0100) Subject: spam.m4: Defer messages if SpamAssassin isn't working. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/exim-config/commitdiff_plain/refs/heads/master?ds=inline spam.m4: Defer messages if SpamAssassin isn't working. --- diff --git a/spam.m4 b/spam.m4 index 4570210..07206bc 100644 --- a/spam.m4 +++ b/spam.m4 @@ -162,6 +162,12 @@ data_spam: ## Check the message for spam, comparing to the configured limit. warn spam = exim:true + ## That won't actually do anything if the SpamAssassin server failed + ## for some reason. Check that the reported score is not completely + ## empty. + defer message = "Spam checking server offline: try again soon" + condition = ${if eq{$spam_score}{}} + ## Format some reporting stuff. warn