From: AL Date: Tue, 25 Oct 2016 00:29:51 +0000 (+0300) Subject: [Minor] Add expire setting for non valid mxes X-Git-Tag: 1.4.0~198^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1070%2Fhead;p=rspamd.git [Minor] Add expire setting for non valid mxes For MX plugin --- diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index fe085cab0..896e702a8 100644 --- a/src/plugins/lua/mx_check.lua +++ b/src/plugins/lua/mx_check.lua @@ -27,6 +27,7 @@ local settings = { symbol_no_mx = 'MX_MISSING', symbol_good_mx = 'MX_GOOD', expire = 86400, -- 1 day by default + expire_novalid = 7200, -- 2 hours by default for no valid mxes key_prefix = 'rmx' } local redis_params @@ -74,7 +75,7 @@ local function mx_check(task) false, -- is write redis_cache_cb, --callback 'SETEX', -- command - {key, tostring(settings.expire / 10.0), '0'} -- arguments + {key, tostring(settings.expire_novalid), '0'} -- arguments ) else local valid_mx = {}