diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-08-24 09:07:22 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-08-24 09:43:29 +0200 |
commit | 8460d986d655c7034af15eaa4b0ded6894d8ebe9 (patch) | |
tree | 0666bc4283969abeed3a50ba7fdbdc8f8fa06390 /src | |
parent | ab58c4cf42362df91c570afc2fec47917616c36b (diff) | |
download | rspamd-8460d986d655c7034af15eaa4b0ded6894d8ebe9.tar.gz rspamd-8460d986d655c7034af15eaa4b0ded6894d8ebe9.zip |
[Minor] Disable DKIM for authed users & local networks (#888)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/dkim_check.c | 4 |
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, |