Factorize PARSE_INT...
[apps/pfixtools.git] / example / postlicyd.conf
index 8ba7a91..a8ef0e0 100644 (file)
 #             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;