From 0f17299b4e6c6deba13a7755fb547409aa235bd2 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Tue, 25 Oct 2022 14:43:47 +0200 Subject: [PATCH] Admin may not have started up when this loads --- core/rspamd/conf/multimap.conf | 8 ++++++-- core/rspamd/conf/whitelist.conf | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/core/rspamd/conf/multimap.conf b/core/rspamd/conf/multimap.conf index dd25c08e..7592fee0 100644 --- a/core/rspamd/conf/multimap.conf +++ b/core/rspamd/conf/multimap.conf @@ -1,11 +1,15 @@ IS_LOCAL_DOMAIN_H { type = "selector" selector = "from('mime'):domain"; - map = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains"; + map = [ +"http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains", +"fallback+file:///dev/null"]; } IS_LOCAL_DOMAIN_E { type = "selector" selector = "from('smtp'):domain"; - map = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains"; + map = [ +"http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains", +"fallback+file:///dev/null"]; } diff --git a/core/rspamd/conf/whitelist.conf b/core/rspamd/conf/whitelist.conf index 56f8a83d..01efd80d 100644 --- a/core/rspamd/conf/whitelist.conf +++ b/core/rspamd/conf/whitelist.conf @@ -2,7 +2,7 @@ rules { BLACKLIST_ANTISPOOF = { valid_dmarc = true; blacklist = true; - domains = "http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains"; + domains = ["http://{{ ADMIN_ADDRESS }}/internal/rspamd/local_domains", "fallback+file:///dev/null"]; score = 0.0; } }