X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=example%2Fpostlicyd.conf;h=a76063c527ce10b637235d0db58159719f480595;hb=80564adb8074d47b212e6e1d3172d246ba9444a5;hp=fa996707de01ba7ca69e371dff8cb7c4f55b4334;hpb=0641f1d7426b95424efd3ee823feea97b1ff7751;p=apps%2Fpfixtools.git diff --git a/example/postlicyd.conf b/example/postlicyd.conf index fa99670..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 @@ -88,6 +88,9 @@ # - if the client is whitelisted, returns whitelist # - if the client is greylisted, returns greylist # - if a error occured (not currently possible), returns error +# State: +# this filter is a recipient filter and works in RCPT state only +# (smtpd_recipient_restrictions). # # Format: # A filter look likes that: @@ -118,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;