diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-15 21:47:52 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-15 21:47:52 +0000 |
commit | 88faa68e4e191355f01a4f8546f1d524e0dd79f1 (patch) | |
tree | 2095a088816bf08631ff36283a2674bc7b0aa83d /src/plugins | |
parent | 25b2b061e6711e914d2512ee584d4687bdf53641 (diff) | |
download | rspamd-88faa68e4e191355f01a4f8546f1d524e0dd79f1.tar.gz rspamd-88faa68e4e191355f01a4f8546f1d524e0dd79f1.zip |
Reduce noise for surbl
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/surbl.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 58083a980..d273f7e66 100644 --- a/src/plugins/surbl.c +++ b/src/plugins/surbl.c @@ -939,6 +939,10 @@ process_dns_results (struct rspamd_task *task, bit = g_hash_table_lookup (suffix->ips, &addr); if (bit != NULL) { + msg_info_task ("<%s> domain [%s] is in surbl %s(%xd)", + task->message_id, + url, suffix->suffix, + bit->bit); rspamd_task_insert_result (task, bit->symbol, 1, g_list_prepend (NULL, rspamd_mempool_strdup (task->task_pool, url))); @@ -952,6 +956,10 @@ process_dns_results (struct rspamd_task *task, (gint)addr, (gint)ntohl (bit->bit), (gint)bit->bit & (gint)ntohl (addr)); + msg_info_task ("<%s> domain [%s] is in surbl %s(%xd)", + task->message_id, + url, suffix->suffix, + bit->bit); if (((gint)bit->bit & (gint)ntohl (addr)) != 0) { rspamd_task_insert_result (task, bit->symbol, 1, g_list_prepend (NULL, @@ -960,6 +968,9 @@ process_dns_results (struct rspamd_task *task, } } else { + msg_info_task ("<%s> domain [%s] is in surbl %s", + task->message_id, + url, suffix->suffix); rspamd_task_insert_result (task, suffix->symbol, 1, g_list_prepend (NULL, rspamd_mempool_strdup (task->task_pool, url))); @@ -976,7 +987,7 @@ surbl_dns_callback (struct rdns_reply *reply, gpointer arg) task = param->task; /* If we have result from DNS server, this url exists in SURBL, so increase score */ if (reply->code == RDNS_RC_NOERROR && reply->entries) { - msg_info_task ("<%s> domain [%s] is in surbl %s", + msg_debug_task ("<%s> domain [%s] is in surbl %s", param->task->message_id, param->host_resolve, param->suffix->suffix); elt = reply->entries; |