aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-18 14:16:27 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-18 14:16:27 +0000
commitdd4ad1e446ebd8e804bd14714e3a4c565a8ddece (patch)
tree453fe19fabb715ce468a2df1f164419a699d544f
parent27afeb35bfc9a9a8719c90150cc89be9bf67d5a1 (diff)
downloadrspamd-dd4ad1e446ebd8e804bd14714e3a4c565a8ddece.tar.gz
rspamd-dd4ad1e446ebd8e804bd14714e3a4c565a8ddece.zip
[Conf] Add missing includes
-rw-r--r--conf/modules.d/external_services.conf4
-rw-r--r--src/plugins/lua/external_services.lua3
2 files changed, 7 insertions, 0 deletions
diff --git a/conf/modules.d/external_services.conf b/conf/modules.d/external_services.conf
index 3995a7c70..a4f9a6aea 100644
--- a/conf/modules.d/external_services.conf
+++ b/conf/modules.d/external_services.conf
@@ -88,4 +88,8 @@ external_services {
# `whitelist` points to a map of IP addresses. Mail from these addresses is not scanned.
whitelist = "/etc/rspamd/antivirus.wl";
}
+
+ .include(try=true,priority=5) "${DBDIR}/dynamic/external_services.conf"
+ .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/external_services.conf"
+ .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/external_services.conf"
}
diff --git a/src/plugins/lua/external_services.lua b/src/plugins/lua/external_services.lua
index f551abe27..6ee0535ba 100644
--- a/src/plugins/lua/external_services.lua
+++ b/src/plugins/lua/external_services.lua
@@ -172,6 +172,9 @@ local function add_scanner_rule(sym, opts)
end
end
+ rspamd_logger.infox(rspamd_config, 'registered external services rule: %s',
+ rule.name)
+
return scan_cb, rule
end