From a9f11b8fa383bdcbda165143e8db43e44a19eb8e Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Thu, 7 Mar 2024 11:26:53 +0100 Subject: [PATCH] fix changing domains.conf through admin with new MonitorDNSBLs present by not clearing the existing derived info, we would detect duplicate domains and refuse the changed config. --- mox-/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/mox-/config.go b/mox-/config.go index 5e36efc..3bc9d78 100644 --- a/mox-/config.go +++ b/mox-/config.go @@ -1617,6 +1617,7 @@ func prepareDynamicConfig(ctx context.Context, log mlog.Log, dynamicPath string, } } + c.MonitorDNSBLZones = nil for _, s := range c.MonitorDNSBLs { d, err := dns.ParseDomain(s) if err != nil {