Add prefix and suffix matching for strlist filter.
[apps/pfixtools.git] / postlicyd / data / test.conf
index 6e0a7a0..8f4c9a0 100644 (file)
@@ -55,6 +55,17 @@ hostnames2 {
   on_fail = postfix:OK;
 }
 
+hostnames3 {
+  type = strlist;
+
+  fields = client_name;
+  file   = nolock:partial-suffix:1:data/test_hostnames_4;
+
+  on_hard_match = postfix:OK;
+  on_fail = postfix:OK;
+}
+
+
 emails1 {
   type = strlist;
 
@@ -87,6 +98,16 @@ emails2 {
   on_fail = postfix:ok;
 }
 
+emails3 {
+  type = strlist;
+
+  fields = sender;
+  file   = nolock:partial-prefix:1:data/test_emails_4;
+
+  on_hard_match = postfix:ok;
+  on_fail = postfix:ok;
+}
+
 ips1 {
   type = iplist;