Compare commits

...
3 Commits
Author SHA1 Message Date
parkel 0143543abd Merge pull request 'Prepare Coulobre v0.7.0 for mail and DNS parity' (#98) from feature/mail-dns-parity into main
Coulobre Panel CI / Checks (Python 3.12) (push) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (push) Canceled after 0s
Reviewed-on: #98
2026-11-22 11:11:38 +01:00
parkel 8419cf3d88 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
2026-11-22 11:08:22 +01:00
parkel 9a73cc78d6 Retain routing state until retirement publishes safely 2026-11-22 11:05:15 +01:00
2 changed files with 11 additions and 3 deletions

No files matched your search

+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.")
+4 -2
View File
@@ -146,6 +146,7 @@ def reconcile_routes(records, *, retired=None):
return
previous = read_table()
recipients = managed_recipients(records)
pruned = None
if retired is not None and retired.domain in routes:
spec = routes[retired.domain]
if any(
@@ -166,6 +167,7 @@ def reconcile_routes(records, *, retired=None):
spec = MailRouting(spec.domain, aliases, catchall)
else:
spec = MailRouting(spec.domain, {})
routes[spec.domain] = spec
save_policy(spec)
routes[spec.domain] = pruned = spec
publish_routes(routes, recipients, previous)
if pruned is not None:
save_policy(pruned)