Add greylist tests.
[apps/pfixtools.git] / postlicyd / data / test.conf
index 7c88a75..9901acc 100644 (file)
@@ -3,7 +3,7 @@ match1 {
 
   match_all = false;
   condition = stress #=;
-  condtion  = stress != yes;
+  condition = stress != yes;
   on_match  = postfix:OK;
   on_fail   = postfix:OK;
 }
@@ -87,4 +87,30 @@ emails2 {
   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;
+
+  on_greylist = postfix:OK;
+  on_whitelist = postfix:OK;
+}
+
 recipient_filter = match1;