X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Fdata%2Ftest.conf;h=7c88a7537b3d7625121de0c30a5962b9f5cd9459;hb=033f9c56012ade3ac28fa598901f7c61d24c13fa;hp=5f47d71bbb22ccc52b0c1b0cde80eb85b6a65fff;hpb=8f968cb4add434c8eaf82c0d0891d5336ba4c93e;p=apps%2Fpfixtools.git diff --git a/postlicyd/data/test.conf b/postlicyd/data/test.conf index 5f47d71..7c88a75 100644 --- a/postlicyd/data/test.conf +++ b/postlicyd/data/test.conf @@ -1,10 +1,90 @@ -filter1 { +match1 { type = match; + match_all = false; condition = stress #=; + condtion = stress != yes; on_match = postfix:OK; on_fail = postfix:OK; } +match2 { + type = match; + + match_all = true; + condition = stress >= y; + condition = stress >i e; + condition = size 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; + 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; +} + +hostnames2 { + 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; +} + +emails1 { + 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; +} + +emails2 { + 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; +recipient_filter = match1;