From: Soha Jin Date: Tue, 11 Jul 2023 12:27:53 +0000 (+0800) Subject: [Fix] test external_relay: count should always be the last rule, X-Git-Tag: 3.6~40^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cca8ad4b07c3994294621fc87c138827c934e4f;p=thirdparty%2Frspamd.git [Fix] test external_relay: count should always be the last rule, as it have no matching condition --- diff --git a/test/functional/configs/merged-local.conf b/test/functional/configs/merged-local.conf index 1be38d1285..2cf05bf133 100644 --- a/test/functional/configs/merged-local.conf +++ b/test/functional/configs/merged-local.conf @@ -41,6 +41,9 @@ external_relay { } EXTERNAL_RELAY_COUNT { count = 4; + # `count` strategy always pops Received headers out, this will break other rules. + # So it should always be the last rule. + priority = 30; strategy = "count"; } EXTERNAL_RELAY_HOSTNAME_MAP {