Add new option 'cleanup_period' to the greylister.
[apps/pfixtools.git] / postlicyd / data / test.conf
index 7fe9548..f2cc3c4 100644 (file)
@@ -1,12 +1,29 @@
-filter1 {
+match1 {
   type = match;
 
+  match_all = false;
   condition = stress #=;
+  condition = stress != yes;
   on_match  = postfix:OK;
   on_fail   = postfix:OK;
 }
 
-filter2 {
+match2 {
+  type = match;
+
+  match_all = true;
+  condition = stress >= y;
+  condition = stress >i e;
+  condition = size <i 12345678;
+  condition = encryption_cipher >i rsa;
+  condition = encryption_cipher >i sha;
+  condition = sasl_method == plain;
+
+  on_match = postfix:OK;
+  on_fail  = postfix:OK;
+}
+
+hostnames1 {
   type = strlist;
 
   fields = helo_name,client_name;
@@ -22,7 +39,7 @@ filter2 {
   on_fail = postfix:OK;
 }
 
-filter3 {
+hostnames2 {
   type = strlist;
 
   fields = helo_name,client_name,reverse_client_name;
@@ -38,7 +55,18 @@ filter3 {
   on_fail = postfix:OK;
 }
 
-filter4 {
+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;
 
   fields = sender;
@@ -54,7 +82,7 @@ filter4 {
   on_fail = postfix:ok;
 }
 
-filter5 {
+emails2 {
   type = strlist;
 
   fields = sender,recipient;
@@ -70,4 +98,42 @@ filter5 {
   on_fail = postfix:ok;
 }
 
-recipient_filter = filter1;
+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;
+
+  file = nolock:1:data/test_ip_1;
+  file = nolock:1:data/test_ip_2;
+
+  soft_threshold = 1;
+  hard_threshold = 2;
+
+  on_hard_match = postfix:OK;
+  on_soft_match = postfix:OK;
+}
+
+greylist1 {
+  type = greylist;
+
+  prefix = test1_;
+  path   = data/;
+  delay  = 1;
+  retry_window = 4;
+  client_awl = 2;
+  max_age = 8;
+  cleanup_period = 1;
+
+  on_greylist = postfix:OK;
+  on_whitelist = postfix:OK;
+}
+
+recipient_filter = match1;