diff options
author | AL <AlexeySa@users.noreply.github.com> | 2016-10-25 03:29:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-25 03:29:51 +0300 |
commit | a72bcec60945c851a037d2edaad382130db6571d (patch) | |
tree | 7c3329160ec906c237a2012d29b572b7547dbd4b /src/plugins/lua/mx_check.lua | |
parent | 0758d1ea48a275214b79fc64908901d469e17b89 (diff) | |
download | rspamd-a72bcec60945c851a037d2edaad382130db6571d.tar.gz rspamd-a72bcec60945c851a037d2edaad382130db6571d.zip |
[Minor] Add expire setting for non valid mxes
For MX plugin
Diffstat (limited to 'src/plugins/lua/mx_check.lua')
-rw-r--r-- | src/plugins/lua/mx_check.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 = {} |