X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Fgreylist.c;h=ca58979e23a199af0d9d51757e8ebdfbf1e6f995;hb=9fc48ba2176a71585c13cd346968bdba499e80de;hp=b5dcb7b4f2f50d891182766ba2db23df8e8172ba;hpb=5fc57f7c291b99db643dc22a814087b34b9f4b59;p=apps%2Fpfixtools.git diff --git a/postlicyd/greylist.c b/postlicyd/greylist.c index b5dcb7b..ca58979 100644 --- a/postlicyd/greylist.c +++ b/postlicyd/greylist.c @@ -51,7 +51,7 @@ typedef struct greylist_config_t { #define GREYLIST_INIT { .lookup_by_host = false, \ .delay = 300, \ - .retry_window = 2 * 24 * 2600, \ + .retry_window = 2 * 24 * 3600, \ .client_awl = 5, \ .awl_db = NULL, \ .obj_db = NULL } @@ -216,7 +216,7 @@ static bool try_greylist(const greylist_config_t *config, /* OK. */ - syslog(LOG_INFO, "client whitelisted"); + //syslog(LOG_INFO, "client whitelisted"); return true; } } @@ -260,13 +260,13 @@ static bool try_greylist(const greylist_config_t *config, /* OK */ - syslog(LOG_INFO, "client whitelisted"); + //syslog(LOG_INFO, "client whitelisted"); return true; } /* DUNNO */ - syslog(LOG_INFO, "client greylisted"); + //syslog(LOG_INFO, "client greylisted"); return false; } @@ -351,7 +351,7 @@ static filter_result_t greylist_filter(const filter_t *filter, const greylist_config_t *config = filter->data; return try_greylist(config, query->sender, query->client_address, query->client_name, query->recipient) ? - HTK_MATCH : HTK_FAIL; + HTK_WHITELIST : HTK_GREYLIST; } static int greylist_init(void) @@ -362,8 +362,8 @@ static int greylist_init(void) /* Hooks. */ (void)filter_hook_register(type, "error"); - (void)filter_hook_register(type, "fail"); - (void)filter_hook_register(type, "match"); + (void)filter_hook_register(type, "greylist"); + (void)filter_hook_register(type, "whitelist"); /* Parameters. */