]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow to load config with no controller defined
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 27 Dec 2020 21:02:39 +0000 (21:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 27 Dec 2020 21:02:54 +0000 (21:02 +0000)
src/libserver/cfg_utils.c
test/functional/configs/proxy.conf

index 439a6179318bc1137f5b75493b40274c7187def2..05cc63c4f3dc8b1274184af27ff67f3b18b97158 100644 (file)
@@ -925,8 +925,6 @@ rspamd_config_post_load (struct rspamd_config *cfg,
                        msg_warn_config ("controller worker is unconfigured: learning,"
                                        " periodic scripts, maps watching and many other"
                                        " Rspamd features will be broken");
-
-                       ret = FALSE;
                }
 
                ret = rspamd_symcache_validate (cfg->cache, cfg, FALSE) && ret;
index 01217c113cb427ca6e4fa122a825b489f99e360e..c2bb3902d97eacde3a6759532f262804b6754003 100644 (file)
@@ -1,7 +1,10 @@
 options = {
-       filters = "spf"
+       filters = ["spf", "dkim", "regexp"]
+       url_tld = "${URL_TLD}"
        pidfile = "${TMPDIR}/rspamd.pid"
+       lua_path = "${INSTALLROOT}/share/rspamd/lib/?.lua"
        dns {
+               nameserver = ["8.8.8.8", "8.8.4.4"];
                retransmits = 10;
                timeout = 2s;
        }