# 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\
# 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
# - 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:
# 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;