diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-01 14:41:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-01 14:41:49 +0100 |
commit | b1d9c4d7078acbb79e5427cb1db21ab377bed6ac (patch) | |
tree | 9b8e726047cdaa219bb06c85c1754c18f0a83934 /src/plugins | |
parent | d6c2852ae2f8ac5543affb53008898ba228af4d7 (diff) | |
download | rspamd-b1d9c4d7078acbb79e5427cb1db21ab377bed6ac.tar.gz rspamd-b1d9c4d7078acbb79e5427cb1db21ab377bed6ac.zip |
[Fix] Stop caching records with DNS failures
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/spf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index d01f2b4da..0ce88cea2 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -511,9 +511,9 @@ spf_plugin_callback (struct spf_resolved *record, struct rspamd_task *task, 1, NULL); } - else if (record && record->elts->len == 0) { + else if (record && record->elts->len == 0 && record->temp_failed) { rspamd_task_insert_result (task, - spf_module_ctx->symbol_permfail, + spf_module_ctx->symbol_dnsfail, 1, NULL); } @@ -524,7 +524,7 @@ spf_plugin_callback (struct spf_resolved *record, struct rspamd_task *task, l = spf_record_ref (record); - if (!record->temp_failed) { + if (!record->temp_failed && !record->perm_failed && !record->na) { rspamd_lru_hash_insert (spf_module_ctx->spf_hash, record->domain, l, task->tv.tv_sec, record->ttl); |