Debian Codegraph @

test/functional/configs/regexp_maps.conf

raw
1 # Ensure effective TLD data is loaded for URL/selector tests
2 options {
3 maps {
4 secretbox_key = "HCaNSQFUeZnDZVQ58BrVMsKOsGZHUpUtmW9khyJeYB4=";
5 }
6 }
7
8 # Configure multimap for regexp rules testing
9 multimap {
10 ADVANCE_FEE_SA_RULES {
11 type = "regexp_rules";
12 map = "{= env.TESTDIR =}/configs/maps/advance_fee_rules.map.zst.enc";
13 scope = "advance_fee_scope";
14 description = "Advance fee fraud detection rules";
15 }
16 SA_SELECTOR_RULES {
17 type = "regexp_rules";
18 map = "{= env.TESTDIR =}/configs/maps/sa_selector_rules.map";
19 description = "SA-like selector/header/uri/full tests";
20 }
21 }
22
23 # Override symbol scores for testing
24 symbols {
25 ADVANCE_FEE_2 {
26 score = 4.0;
27 description = "Advance fee fraud pattern (medium confidence)";
28 group = "scam";
29 }
30 ADVANCE_FEE_3 {
31 score = 5.0;
32 description = "Advance fee fraud pattern (high confidence)";
33 group = "scam";
34 }
35 }
36
37 # Set required score for testing
38 actions {
39 reject = 10;
40 add_header = 6;
41 greylist = 4;
42 }
43
44 # Enable necessary modules
45 dmarc { }
46 spf { }
47 dkim { }
48
49 # Module path for multimap
50 modules {
51 path = "{= env.TESTDIR =}/../../src/plugins/lua/"
52 }
53
54 # Disable some modules that might interfere with testing
55 rbl {
56 enabled = false;
57 }
58
59 fuzzy_check {
60 enabled = false;
61 }
62
63 .include(duplicate=merge,priority=0) "{= env.TESTDIR =}/configs/plugins.conf"