]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] test external_relay: count should always be the last rule,
authorSoha Jin <soha@lohu.info>
Tue, 11 Jul 2023 12:27:53 +0000 (20:27 +0800)
committerSoha Jin <soha@lohu.info>
Tue, 11 Jul 2023 14:44:53 +0000 (22:44 +0800)
as it have no matching condition

test/functional/configs/merged-local.conf

index 1be38d1285c7ada7f66d0fd897df792110e74195..2cf05bf1339c6f7bb15f124fbb7adb2bf536e500 100644 (file)
@@ -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 {