Add a test of the cleanup.
[apps/pfixtools.git] / postlicyd / data / test.conf
1 match1 {
2   type = match;
3
4   match_all = false;
5   condition = stress #=;
6   condition = stress != yes;
7   on_match  = postfix:OK;
8   on_fail   = postfix:OK;
9 }
10
11 match2 {
12   type = match;
13
14   match_all = true;
15   condition = stress >= y;
16   condition = stress >i e;
17   condition = size <i 12345678;
18   condition = encryption_cipher >i rsa;
19   condition = encryption_cipher >i sha;
20   condition = sasl_method == plain;
21
22   on_match = postfix:OK;
23   on_fail  = postfix:OK;
24 }
25
26 hostnames1 {
27   type = strlist;
28
29   fields = helo_name,client_name;
30   file   = nolock:suffix:1:data/test_hostnames_1;
31   file   = nolock:prefix:4:data/test_hostnames_2;
32   file   = nolock:suffix:8:data/test_hostnames_3;
33
34   soft_threshold = 1;
35   hard_threshold = 5;
36
37   on_hard_match = postfix:OK;
38   on_soft_match = postfix:OK;
39   on_fail = postfix:OK;
40 }
41
42 hostnames2 {
43   type = strlist;
44
45   fields = helo_name,client_name,reverse_client_name;
46   file   = nolock:suffix:1:data/test_hostnames_1;
47   file   = nolock:prefix:4:data/test_hostnames_2;
48   file   = nolock:suffix:8:data/test_hostnames_3;
49
50   soft_threshold = 1;
51   hard_threshold = 5;
52
53   on_hard_match = postfix:OK;
54   on_soft_match = postfix:OK;
55   on_fail = postfix:OK;
56 }
57
58 emails1 {
59   type = strlist;
60
61   fields = sender;
62   file   = nolock:suffix:1:data/test_emails_1;
63   file   = nolock:prefix:4:data/test_emails_2;
64   file   = nolock:suffix:8:data/test_emails_3;
65
66   soft_threshold = 1;
67   hard_threshold = 5;
68
69   on_hard_match = postfix:ok;
70   on_soft_match = postfix:ok;
71   on_fail = postfix:ok;
72 }
73
74 emails2 {
75   type = strlist;
76
77   fields = sender,recipient;
78   file   = nolock:suffix:1:data/test_emails_1;
79   file   = nolock:prefix:4:data/test_emails_2;
80   file   = nolock:suffix:8:data/test_emails_3;
81
82   soft_threshold = 1;
83   hard_threshold = 5;
84
85   on_hard_match = postfix:ok;
86   on_soft_match = postfix:ok;
87   on_fail = postfix:ok;
88 }
89
90 ips1 {
91   type = iplist;
92
93   file = nolock:1:data/test_ip_1;
94   file = nolock:1:data/test_ip_2;
95
96   soft_threshold = 1;
97   hard_threshold = 2;
98
99   on_hard_match = postfix:OK;
100   on_soft_match = postfix:OK;
101 }
102
103 greylist1 {
104   type = greylist;
105
106   prefix = test1_;
107   path   = data/;
108   delay  = 1;
109   retry_window = 4;
110   client_awl = 2;
111   max_age = 8;
112
113   on_greylist = postfix:OK;
114   on_whitelist = postfix:OK;
115 }
116
117 recipient_filter = match1;