X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=postlicyd%2Fdata%2Ftest.conf;h=9825ce1e962d3e8db8beca9d25c218d7bac900d3;hb=855e2f651736dfd35588245082bf0ae7d3eddbe5;hp=7fe95489a26ea0268c10de17d7e3db5ae9a8c42e;hpb=ddf3e587c41536baad71de4008eafd64b8c00d58;p=apps%2Fpfixtools.git diff --git a/postlicyd/data/test.conf b/postlicyd/data/test.conf index 7fe9548..9825ce1 100644 --- a/postlicyd/data/test.conf +++ b/postlicyd/data/test.conf @@ -1,12 +1,29 @@ -filter1 { +match1 { type = match; + match_all = false; condition = stress #=; + condtion = 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 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,7 @@ filter3 { on_fail = postfix:OK; } -filter4 { +emails1 { type = strlist; fields = sender; @@ -54,7 +71,7 @@ filter4 { on_fail = postfix:ok; } -filter5 { +emails2 { type = strlist; fields = sender,recipient; @@ -70,4 +87,17 @@ filter5 { on_fail = postfix:ok; } -recipient_filter = filter1; +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; +} + +recipient_filter = match1;