summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSoha Jin <soha@lohu.info>2023-07-11 20:27:53 +0800
committerSoha Jin <soha@lohu.info>2023-07-11 22:44:53 +0800
commit7cca8ad4b07c3994294621fc87c138827c934e4f (patch)
tree9f81569f3dd0d616b76da38edec0591ec17026f9 /test
parentd0c02ee183b67f87a4e4e13fc6dfbf072620b464 (diff)
downloadrspamd-7cca8ad4b07c3994294621fc87c138827c934e4f.tar.gz
rspamd-7cca8ad4b07c3994294621fc87c138827c934e4f.zip
[Fix] test external_relay: count should always be the last rule,
as it have no matching condition
Diffstat (limited to 'test')
-rw-r--r--test/functional/configs/merged-local.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/configs/merged-local.conf b/test/functional/configs/merged-local.conf
index 1be38d128..2cf05bf13 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 {