Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
# - max_age: number (default: 30 * 3600)
# lifetime of a greylist/whitelist session: ie, if a client does ne reappear during
# max_age seconds, the entries associated to this client are invalidated.
# - max_age: number (default: 30 * 3600)
# lifetime of a greylist/whitelist session: ie, if a client does ne reappear during
# max_age seconds, the entries associated to this client are invalidated.
+# - cleanup_period: number (default: 86400)
+# minimum time between two cleanup of the database. You must keep in mind that cleanup
+# is important since it remove useless entries from the database and thus help
+# speeding up the lookups. A cleanup can take a few minutes if the database contains
+# a lot of entries.
# Return value:
# - if the client is whitelisted, returns whitelist
# - if the client is greylisted, returns greylist
# Return value:
# - if the client is whitelisted, returns whitelist
# - if the client is greylisted, returns greylist
retry_window = 4;
client_awl = 2;
max_age = 8;
retry_window = 4;
client_awl = 2;
max_age = 8;
on_greylist = postfix:OK;
on_whitelist = postfix:OK;
on_greylist = postfix:OK;
on_whitelist = postfix:OK;
FILTER_PARAM_PARSE_INT(CLIENT_AWL, config->client_awl);
FILTER_PARAM_PARSE_INT(DELAY, config->delay);
FILTER_PARAM_PARSE_INT(MAX_AGE, config->max_age);
FILTER_PARAM_PARSE_INT(CLIENT_AWL, config->client_awl);
FILTER_PARAM_PARSE_INT(DELAY, config->delay);
FILTER_PARAM_PARSE_INT(MAX_AGE, config->max_age);
+ FILTER_PARAM_PARSE_INT(CLEANUP_PERIOD, config->cleanup_period);
(void)filter_param_register(type, "retry_window");
(void)filter_param_register(type, "client_awl");
(void)filter_param_register(type, "max_age");
(void)filter_param_register(type, "retry_window");
(void)filter_param_register(type, "client_awl");
(void)filter_param_register(type, "max_age");
+ (void)filter_param_register(type, "cleanup_period");
(void)filter_param_register(type, "path");
(void)filter_param_register(type, "prefix");
return 0;
(void)filter_param_register(type, "path");
(void)filter_param_register(type, "prefix");
return 0;