aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-24 11:05:29 +0100
committerGitHub <noreply@github.com>2016-08-24 11:05:29 +0100
commitc6265d45babdd583e1d3877dbdd60cca65fa2291 (patch)
tree15edd533b829ed20ce3c2501cc294cb8d203e339
parent5d616be0903614b2a6d2a0f159fe6153a0b08c37 (diff)
parent8460d986d655c7034af15eaa4b0ded6894d8ebe9 (diff)
downloadrspamd-c6265d45babdd583e1d3877dbdd60cca65fa2291.tar.gz
rspamd-c6265d45babdd583e1d3877dbdd60cca65fa2291.zip
Merge pull request #889 from fatalbanana/dkim
[Minor] Disable DKIM for authed users & local networks (#888)
-rw-r--r--src/plugins/dkim_check.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c
index 768165610..71e3b930a 100644
--- a/src/plugins/dkim_check.c
+++ b/src/plugins/dkim_check.c
@@ -652,6 +652,10 @@ dkim_symbol_callback (struct rspamd_task *task, void *unused)
DKIM_SIGNHEADER,
FALSE);
if (hlist != NULL) {
+ if (task->user != NULL || rspamd_inet_address_is_local (task->from_addr)) {
+ msg_info_task ("skip DKIM checks for local networks and authorized users");
+ return;
+ }
/* Check whitelist */
msg_debug_task ("dkim signature found");
if (radix_find_compressed_addr (dkim_module_ctx->whitelist_ip,