X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Fdata%2Ftest.conf;h=6e0a7a024bc9975ce676eb15ee50b0f5aa5d018f;hb=44d04c83a53af19faecb1620cf0f9ed53054da5c;hp=3fc0503f06581677f06409dcad8560b62f267aec;hpb=e1a3e8c4ae68a4b95f82eea3d5a3af0fa203a062;p=apps%2Fpfixtools.git diff --git a/postlicyd/data/test.conf b/postlicyd/data/test.conf index 3fc0503..6e0a7a0 100644 --- a/postlicyd/data/test.conf +++ b/postlicyd/data/test.conf @@ -1,11 +1,28 @@ match1 { type = match; + match_all = false; condition = stress #=; + condition = 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; @@ -70,4 +87,31 @@ 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; + max_age = 8; + + on_greylist = postfix:OK; + on_whitelist = postfix:OK; +} + recipient_filter = match1;