From e58ee7df16b4dc74a1976dd44b219b4ac48925d8 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 19 Aug 2015 15:31:50 +0200 Subject: [PATCH] Use symbol_allow from DKIM module if set --- src/plugins/lua/rbl.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 8dfb7b5ed..45782ba19 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -41,6 +41,11 @@ local symbols = { dkim_allow_symbol = 'R_DKIM_ALLOW', } +local dkim_config = rspamd_config:get_all_opt("dkim") +if dkim_config['symbol_allow'] then + symbols['dkim_allow_symbol'] = dkim_config['symbol_allow'] +end + local function validate_dns(lstr) if lstr:match('%.%.') then return false -- 2.39.5