From da5c2485628a056fa1858fed3920c0d98527f26a Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 9 Mar 2026 17:32:55 +0100 Subject: [PATCH] try fix some test hangs potentially caused by filtermail's DNS cache --- cmdeploy/src/cmdeploy/lxc/cli.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmdeploy/src/cmdeploy/lxc/cli.py b/cmdeploy/src/cmdeploy/lxc/cli.py index df859448..98dfea04 100644 --- a/cmdeploy/src/cmdeploy/lxc/cli.py +++ b/cmdeploy/src/cmdeploy/lxc/cli.py @@ -247,6 +247,13 @@ def lxc_test_cmd(args, out): out.print(f"Loading {ct.zone} into PowerDNS ...") dns_ct.set_dns_records(zone_data) + # Restart filtermail so its in-process DNS cache + # does not hold stale negative DKIM responses + # from before the zones were loaded. + for ct in map(ix.get_container, relay_names): + out.print(f"Restarting filtermail-incoming on {ct.name} ...") + ct.bash("systemctl restart filtermail-incoming") + with out.section("cmdeploy test"): first = ix.get_container(relay_names[0]) env = None