X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=example%2Fpostlicyd.conf;h=a76063c527ce10b637235d0db58159719f480595;hb=80564adb8074d47b212e6e1d3172d246ba9444a5;hp=8ba7a9199e69d7304e972395b55f6b3cae107f91;hpb=6154a392a1f0d96d4599a45f1c37d84dbe5bfa4d;p=apps%2Fpfixtools.git diff --git a/example/postlicyd.conf b/example/postlicyd.conf index 8ba7a91..a76063c 100644 --- a/example/postlicyd.conf +++ b/example/postlicyd.conf @@ -12,8 +12,8 @@ # escape any character \c = c (\n = n, \\ = \, ...). This format allow non-ascii # strings and string concatenation " abcd " "ef" = " abcd ef". # - ASCII-only strings can be written without double-quotes. They can be splitted -# into several lines using shell-like escaping of EOL. A string begins on the -# first non-blank character. This king of string can not contain semi-colons. +# into several lines using shell-like escaping of EOL. A string begins and ends on +# on a non-blank character. This king of string can not contain semi-colons. # eg: # The following format are equivalent: # (1) this is a str\ @@ -58,15 +58,15 @@ # declare a file to load. If lock is given, the blacklist is locked into the # RAM. The weight is a number giving the weight of this blaclist file in the # score of the IP -# - soft_threshold: score (default: 0) +# - soft_threshold: score (default: 1) # minimum score to match the soft_match return value -# - hard_threshold: score (default: 0) +# - hard_threshold: score (default: 1) # minimum score to match the hard_match return value # Return value: # The score of a query is the sum of the weight of the blacklist it matched. # - If the IP can not be parsed, returns error -# - If the score is strictly greater than hard_threshold, returns hard_match -# - If the score is strictly greater than soft_threshold, returns soft_match +# - If the score is strictly greater >= than hard_threshold, returns hard_match +# - If the score is strictly greater >= than soft_threshold, returns soft_match # - Else, returns fail # # - greylist: greylister @@ -121,8 +121,8 @@ spamhaus_and_abuseat { # configuration file = lock:10:/var/spool/postlicyd/rbl.spamhaus.org; file = lock:1:/var/spool/postlicyd/cbl.abuseat.org; - soft_threshold = 0; - hard_threshold = 10; + soft_threshold = 1; + hard_threshold = 9; # hooks on_soft_match = greylist;