aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-11 20:29:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-11 20:29:35 +0100
commit41d011ec6384589ebb8cc64fbea2abd937f5e478 (patch)
tree56dec5c440da8e4369bba13dac86888b411bba0d /src/plugins
parent678f31bbe6ad07767984db5f22b4ffd47909e0f6 (diff)
parentb51ce988891efc800acd2a2847d422c4cfba6109 (diff)
downloadrspamd-41d011ec6384589ebb8cc64fbea2abd937f5e478.tar.gz
rspamd-41d011ec6384589ebb8cc64fbea2abd937f5e478.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/antivirus.lua4
-rw-r--r--src/plugins/lua/milter_headers.lua1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/lua/antivirus.lua b/src/plugins/lua/antivirus.lua
index 2b072f096..d6769071a 100644
--- a/src/plugins/lua/antivirus.lua
+++ b/src/plugins/lua/antivirus.lua
@@ -746,7 +746,6 @@ local av_types = {
}
local function add_antivirus_rule(sym, opts)
- local rule = {}
if not opts['type'] then
return nil
end
@@ -759,9 +758,10 @@ local function add_antivirus_rule(sym, opts)
opts['type'])
end
- rule = cfg.configure(opts)
+ local rule = cfg.configure(opts)
rule.type = opts.type
+
if not rule then
rspamd_logger.errx(rspamd_config, 'cannot configure %s for %s',
opts['type'], opts['symbol'])
diff --git a/src/plugins/lua/milter_headers.lua b/src/plugins/lua/milter_headers.lua
index 39cfb3298..2633d32f8 100644
--- a/src/plugins/lua/milter_headers.lua
+++ b/src/plugins/lua/milter_headers.lua
@@ -111,6 +111,7 @@ local settings = {
softfail = 'DMARC_POLICY_SOFTFAIL',
quarantine = 'DMARC_POLICY_QUARANTINE',
},
+ add_smtp_user = true,
},
['stat-signature'] = {
header = 'X-Stat-Signature',