Add test data.
[apps/pfixtools.git] / postlicyd / data / test.conf
index 5f47d71..7fe9548 100644 (file)
@@ -6,5 +6,68 @@ filter1 {
   on_fail   = postfix:OK;
 }
 
+filter2 {
+  type = strlist;
+
+  fields = helo_name,client_name;
+  file   = nolock:suffix:1:data/test_hostnames_1;
+  file   = nolock:prefix:4:data/test_hostnames_2;
+  file   = nolock:suffix:8:data/test_hostnames_3;
+
+  soft_threshold = 1;
+  hard_threshold = 5;
+
+  on_hard_match = postfix:OK;
+  on_soft_match = postfix:OK;
+  on_fail = postfix:OK;
+}
+
+filter3 {
+  type = strlist;
+
+  fields = helo_name,client_name,reverse_client_name;
+  file   = nolock:suffix:1:data/test_hostnames_1;
+  file   = nolock:prefix:4:data/test_hostnames_2;
+  file   = nolock:suffix:8:data/test_hostnames_3;
+
+  soft_threshold = 1;
+  hard_threshold = 5;
+
+  on_hard_match = postfix:OK;
+  on_soft_match = postfix:OK;
+  on_fail = postfix:OK;
+}
+
+filter4 {
+  type = strlist;
+
+  fields = sender;
+  file   = nolock:suffix:1:data/test_emails_1;
+  file   = nolock:prefix:4:data/test_emails_2;
+  file   = nolock:suffix:8:data/test_emails_3;
+
+  soft_threshold = 1;
+  hard_threshold = 5;
+
+  on_hard_match = postfix:ok;
+  on_soft_match = postfix:ok;
+  on_fail = postfix:ok;
+}
+
+filter5 {
+  type = strlist;
+
+  fields = sender,recipient;
+  file   = nolock:suffix:1:data/test_emails_1;
+  file   = nolock:prefix:4:data/test_emails_2;
+  file   = nolock:suffix:8:data/test_emails_3;
+
+  soft_threshold = 1;
+  hard_threshold = 5;
+
+  on_hard_match = postfix:ok;
+  on_soft_match = postfix:ok;
+  on_fail = postfix:ok;
+}
 
 recipient_filter = filter1;