7fe95489a26ea0268c10de17d7e3db5ae9a8c42e
[apps/pfixtools.git] / postlicyd / data / test.conf
1 filter1 {
2   type = match;
3
4   condition = stress #=;
5   on_match  = postfix:OK;
6   on_fail   = postfix:OK;
7 }
8
9 filter2 {
10   type = strlist;
11
12   fields = helo_name,client_name;
13   file   = nolock:suffix:1:data/test_hostnames_1;
14   file   = nolock:prefix:4:data/test_hostnames_2;
15   file   = nolock:suffix:8:data/test_hostnames_3;
16
17   soft_threshold = 1;
18   hard_threshold = 5;
19
20   on_hard_match = postfix:OK;
21   on_soft_match = postfix:OK;
22   on_fail = postfix:OK;
23 }
24
25 filter3 {
26   type = strlist;
27
28   fields = helo_name,client_name,reverse_client_name;
29   file   = nolock:suffix:1:data/test_hostnames_1;
30   file   = nolock:prefix:4:data/test_hostnames_2;
31   file   = nolock:suffix:8:data/test_hostnames_3;
32
33   soft_threshold = 1;
34   hard_threshold = 5;
35
36   on_hard_match = postfix:OK;
37   on_soft_match = postfix:OK;
38   on_fail = postfix:OK;
39 }
40
41 filter4 {
42   type = strlist;
43
44   fields = sender;
45   file   = nolock:suffix:1:data/test_emails_1;
46   file   = nolock:prefix:4:data/test_emails_2;
47   file   = nolock:suffix:8:data/test_emails_3;
48
49   soft_threshold = 1;
50   hard_threshold = 5;
51
52   on_hard_match = postfix:ok;
53   on_soft_match = postfix:ok;
54   on_fail = postfix:ok;
55 }
56
57 filter5 {
58   type = strlist;
59
60   fields = sender,recipient;
61   file   = nolock:suffix:1:data/test_emails_1;
62   file   = nolock:prefix:4:data/test_emails_2;
63   file   = nolock:suffix:8:data/test_emails_3;
64
65   soft_threshold = 1;
66   hard_threshold = 5;
67
68   on_hard_match = postfix:ok;
69   on_soft_match = postfix:ok;
70   on_fail = postfix:ok;
71 }
72
73 recipient_filter = filter1;