diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-08 13:37:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-08 13:37:25 +0100 |
commit | e12a0910cf46c93ce7a2210d0d8a91c4b538f589 (patch) | |
tree | 8bee29fc30a114b60aa0d865c73406904b07ff78 | |
parent | bd689b9b23679860d4e3c9e419f4c46bcb2e04e2 (diff) | |
download | rspamd-e12a0910cf46c93ce7a2210d0d8a91c4b538f589.tar.gz rspamd-e12a0910cf46c93ce7a2210d0d8a91c4b538f589.zip |
[Fix] Fix authentication results insertion
-rw-r--r-- | src/plugins/lua/milter_headers.lua | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua index 0304b863a..d6b06c9a9 100644 --- a/src/plugins/lua/milter_headers.lua +++ b/src/plugins/lua/milter_headers.lua @@ -102,31 +102,6 @@ local settings = { ['authentication-results'] = { header = 'Authentication-Results', remove = 0, - spf_symbols = { - pass = 'R_SPF_ALLOW', - fail = 'R_SPF_FAIL', - softfail = 'R_SPF_SOFTFAIL', - neutral = 'R_SPF_NEUTRAL', - temperror = 'R_SPF_DNSFAIL', - none = 'R_SPF_NA', - permerror = 'R_SPF_PERMFAIL', - }, - dkim_symbols = { - pass = 'R_DKIM_ALLOW', - fail = 'R_DKIM_REJECT', - temperror = 'R_DKIM_TEMPFAIL', - none = 'R_DKIM_NA', - permerror = 'R_DKIM_PERMFAIL', - }, - dmarc_symbols = { - pass = 'DMARC_POLICY_ALLOW', - permerror = 'DMARC_BAD_POLICY', - temperror = 'DMARC_DNSFAIL', - none = 'DMARC_NA', - reject = 'DMARC_POLICY_REJECT', - softfail = 'DMARC_POLICY_SOFTFAIL', - quarantine = 'DMARC_POLICY_QUARANTINE', - }, add_smtp_user = true, stop_chars = ';', }, @@ -472,8 +447,7 @@ local function milter_headers(task) settings.routines['authentication-results'].remove end - local res = ar.gen_auth_results(task, - settings.routines['authentication-results']) + local res = ar.gen_auth_results(task, nil) if res then add_header('authentication-results', res, ';', 1) |