From de37e3b33f40d42cd8e4a59aa70f24e480f89907 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 27 Apr 2009 15:56:34 +0200 Subject: [PATCH] exim: Correct spam rejection threshold. The score used to be compared with 20, but that really means spamscore 2.0. So we set it to 200 instead, for rejecting when the score is >20. --- etc/exim4/conf.d/acl/40_exim4-config_check_data | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/exim4/conf.d/acl/40_exim4-config_check_data b/etc/exim4/conf.d/acl/40_exim4-config_check_data index 9933c39..f79e3f7 100644 --- a/etc/exim4/conf.d/acl/40_exim4-config_check_data +++ b/etc/exim4/conf.d/acl/40_exim4-config_check_data @@ -38,9 +38,10 @@ acl_check_data: # and the message is not denied). add_header = X-Spam-Score: $spam_score ($spam_bar) add_header = X-Spam-Report: $spam_report - # Reject any messages with a spam score of more than 20. This is fairly - # high, but we don't like really rejecting messages. - condition = ${if >{$spam_score_int}{20}} + # Reject any messages with a spam score of more than 20 ($spam_score_int is + # $spam_score * 10). This is fairly high, but we don't like really + # rejecting messages. + condition = ${if >{$spam_score_int}{200}} # accept otherwise accept -- 2.30.2