diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-05-29 11:13:56 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-05-29 11:15:16 +0200 |
commit | c65ce17f6bde4e2e60c9df092adaa60230ad37e6 (patch) | |
tree | ef853302523b2240c7b99de8fb72ff07f7c929c1 /src | |
parent | 5f7d94353bbc32d75c02a75a1fed99cc4001187d (diff) | |
download | rspamd-c65ce17f6bde4e2e60c9df092adaa60230ad37e6.tar.gz rspamd-c65ce17f6bde4e2e60c9df092adaa60230ad37e6.zip |
[Minor] DMARC reporting: Fix TCP request
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/dmarc.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index b712d0f53..dca85a735 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -17,6 +17,7 @@ limitations under the License. -- Dmarc policy filter +local rspamd_resolver = require "rspamd_resolver" local rspamd_logger = require "rspamd_logger" local mempool = require "rspamd_mempool" local rspamd_tcp = require "rspamd_tcp" @@ -607,6 +608,7 @@ if opts['reporting'] == true then end rspamd_config:add_on_load(function(cfg, ev_base, worker) if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end + local resolver = rspamd_resolver.init(ev_base, rspamd_config) load_scripts(cfg, ev_base) rspamd_config:register_finish_script(function () local stamp = pool:get_variable(VAR_NAME, 'double') @@ -854,6 +856,7 @@ if opts['reporting'] == true then stop_pattern = '\r\n', host = report_settings.smtp, port = report_settings.smtp_port, + resolver = resolver, }) end local function make_report() |