From: Andrew Lewis Date: Wed, 19 Aug 2015 13:31:50 +0000 (+0200) Subject: Use symbol_allow from DKIM module if set X-Git-Tag: 1.0.0~187^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e58ee7df16b4dc74a1976dd44b219b4ac48925d8;p=thirdparty%2Frspamd.git Use symbol_allow from DKIM module if set --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 8dfb7b5ed9..45782ba19d 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