Complete mailbox retirement without active Dovecot sessions
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s

This commit is contained in:
parkel committed 2026-11-22 11:08:22 +01:00
1 parent 9a73cc78d6
commit 8419cf3d88
1 file changed
+7 -1
+7 -1
View File
@@ -127,7 +127,13 @@ def remove_delivery(mailbox, account, auth_group, modern):
and mail.postfix_lookup(mailbox.address, mail.POSTFIX_MAILBOXES)
is None
):
mail.run("doveadm", "kick", mailbox.address)
mail.run(
"doveadm",
"kick",
mailbox.address,
missing_exit=68,
missing_output="no users kicked",
)
return
time.sleep(0.25)
raise ValueError("The mail node still resolves the retired recipient.")