diff options
author | Andrew Lewis <nerf@judo.za.org> | 2023-10-24 13:53:03 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2023-10-24 13:53:03 +0200 |
commit | 06618f8a52242c8678eed659b56cebb23a34ed38 (patch) | |
tree | 2d0c1a26d5a053608e3421f45f64203dcd682d3c /test/functional/configs/merged-override.conf | |
parent | fea6bf4c35ae7fd40c9d61edc2283d335347d998 (diff) | |
download | rspamd-06618f8a52242c8678eed659b56cebb23a34ed38.tar.gz rspamd-06618f8a52242c8678eed659b56cebb23a34ed38.zip |
[Feature] rbl: support checking returncodes by regex
Diffstat (limited to 'test/functional/configs/merged-override.conf')
-rw-r--r-- | test/functional/configs/merged-override.conf | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/functional/configs/merged-override.conf b/test/functional/configs/merged-override.conf index 28d554b83..0c9b7a3e2 100644 --- a/test/functional/configs/merged-override.conf +++ b/test/functional/configs/merged-override.conf @@ -269,9 +269,10 @@ rbl { from = 'FAKE_RBL', } unknown = true; + matcher = "regexp"; returncodes = { - "CODE_2" = "127.0.0.2"; - "CODE_3" = "127.0.0.3"; + "CODE_2" = '^127\.0\.0\.2$'; + "CODE_3" = '^127\.0\.0\.3$'; } } fake_whitelist { @@ -283,9 +284,10 @@ rbl { rbl = "fake.wl"; symbol = "FAKE_WL_RBL_UNKNOWN"; unknown = true; + #matcher = "luapattern"; returncodes = { - "FAKE_WL_RBL_CODE_2" = "127.0.0.2"; - "FAKE_WL_RBL_CODE_3" = "127.0.0.3"; + "FAKE_WL_RBL_CODE_2" = "127%.0%.0%.2"; + "FAKE_WL_RBL_CODE_3" = "127%.0%.0%.3"; } } RSPAMD_EMAILBL { |