X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Fgreylist.c;h=e0250455287dc83451b60f658ec789d9e1bf5274;hb=b5c79dd713c2e444df9ba50b48718330ad936eb7;hp=7d7087557c47bacef43406a7a7a59d7879a72b75;hpb=855e2f651736dfd35588245082bf0ae7d3eddbe5;p=apps%2Fpfixtools.git diff --git a/postlicyd/greylist.c b/postlicyd/greylist.c index 7d70875..e025045 100644 --- a/postlicyd/greylist.c +++ b/postlicyd/greylist.c @@ -209,7 +209,7 @@ static bool try_greylist(const greylist_config_t *config, /* Whitelist if count is enough. */ - if (aent.count > config->client_awl) { + if (aent.count >= config->client_awl) { if (now < aent.last + 3600) { INCR_AWL } @@ -311,6 +311,7 @@ static bool greylist_filter_constructor(filter_t *filter) FILTER_PARAM_PARSE_BOOLEAN(LOOKUP_BY_HOST, config->lookup_by_host); FILTER_PARAM_PARSE_INT(RETRY_WINDOW, config->retry_window); FILTER_PARAM_PARSE_INT(CLIENT_AWL, config->client_awl); + FILTER_PARAM_PARSE_INT(DELAY, config->delay); default: break; }