[Rspamd] More explicit Sendgrid ID checking

This commit is contained in:
andryyy
2020-11-30 07:45:30 +01:00
parent dd1b25fa61
commit 9670d0c4f1
3 changed files with 68 additions and 7 deletions

View File

@@ -1,3 +1,10 @@
-- Load sendgrid ID validator, thanks to https://github.com/fatalbanana
local rspamd_util = require 'rspamd_util'
local f = '/etc/rspamd/lua/ivm-sg.lua'
if rspamd_util.file_exists(f) then
dofile(f)
end
rspamd_config.MAILCOW_AUTH = {
callback = function(task)
local uname = task:get_user()