mix kantoor.routes.sync (Kantoor v1.0.0)

Brings every attached domain's Karta routes in step with its mailboxes, aliases and catch-all (Kantoor.Karta.Routes): an exact route per mailbox and alias, and the * route delivering only when the domain has a catch-all.

Domains attached by an older release still have the single * route that delivers everything; run this once after the release that introduced exact routes.

mix kantoor.routes.sync
mix kantoor.routes.sync --domain shilohbv.com

In a release: bin/kantoor eval 'Kantoor.Release.sync_mail_routes()'.

Exits non-zero when a domain's routes could not be fully set, so a release step does not pass silently. Karta is not configured is reported and does not fail (there is nothing to sync).