aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dkim_check.c
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2015-04-05 01:37:32 +0200
committerAndrew Lewis <nerf@judo.za.org>2015-04-05 14:52:25 +0200
commit2c8849eabfb7f2fe5c0e49ed900a2bddfc4b0e7e (patch)
tree48caf390358a6d897bbddf032a6ee1fac08034a5 /src/plugins/dkim_check.c
parentf5b98e74b84542150f93073d5ee70ffeb737c0ce (diff)
downloadrspamd-2c8849eabfb7f2fe5c0e49ed900a2bddfc4b0e7e.tar.gz
rspamd-2c8849eabfb7f2fe5c0e49ed900a2bddfc4b0e7e.zip
DMARC: Check DKIM alignment
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r--src/plugins/dkim_check.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c
index 0b710ce63..b8e709d99 100644
--- a/src/plugins/dkim_check.c
+++ b/src/plugins/dkim_check.c
@@ -305,13 +305,16 @@ dkim_module_check (struct rspamd_task *task,
}
if (res == DKIM_REJECT) {
- rspamd_task_insert_result (task, dkim_module_ctx->symbol_reject, score_deny, NULL);
+ rspamd_task_insert_result (task, dkim_module_ctx->symbol_reject, score_deny,
+ g_list_prepend (NULL, rspamd_mempool_strdup (task->task_pool, ctx->domain)));
}
else if (res == DKIM_TRYAGAIN) {
- rspamd_task_insert_result (task, dkim_module_ctx->symbol_tempfail, 1, NULL);
+ rspamd_task_insert_result (task, dkim_module_ctx->symbol_tempfail, 1,
+ g_list_prepend (NULL, rspamd_mempool_strdup (task->task_pool, ctx->domain)));
}
else if (res == DKIM_CONTINUE) {
- rspamd_task_insert_result (task, dkim_module_ctx->symbol_allow, score_allow, NULL);
+ rspamd_task_insert_result (task, dkim_module_ctx->symbol_allow, score_allow,
+ g_list_prepend (NULL, rspamd_mempool_strdup (task->task_pool, ctx->domain)));
}
}