diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-27 13:41:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-27 13:41:06 +0100 |
commit | 12c83b26cf7c382f3612102eb3d759d33a17c333 (patch) | |
tree | 4727fa2a9e1d5a66eb7c00316c111b429863db22 /src/plugins | |
parent | 502559ceab99ae36ae0200f98aa2ac14c99b0255 (diff) | |
parent | 18b3d066748baff20608adfa2270c50a40704c88 (diff) | |
download | rspamd-12c83b26cf7c382f3612102eb3d759d33a17c333.tar.gz rspamd-12c83b26cf7c382f3612102eb3d759d33a17c333.zip |
Merge pull request #978 from fatalbanana/spf
Fix SPF PERMFAIL/DNSFAIL behaviour on failed redirect
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/spf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 33df85262..99d09fd01 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -478,6 +478,12 @@ spf_plugin_callback (struct spf_resolved *record, struct rspamd_task *task, 1, NULL); } + else if (record && record->perm_failed) { + rspamd_task_insert_result (task, + spf_module_ctx->symbol_permfail, + 1, + NULL); + } else if (record && record->elts->len == 0) { rspamd_task_insert_result (task, spf_module_ctx->symbol_permfail, |