Aliases and the catch-all
A mail domain does not have to be one address per person. Kantoor lets a domain's administrators give a mailbox extra addresses (aliases), and send mail for every other address of the domain to one mailbox (the catch-all). Both live on Mail administration → Domains, then open the domain: Aliases & catch-all.
Everything here is per domain. A mailbox, an alias and a catch-all of one domain never affect another.
How mail is delivered
For each incoming message Kantoor asks, in this order:
- An exact mailbox —
ann@example.comto Ann's mailbox. A+tagon a mailbox address goes to that mailbox too (ann+news@example.com), as Karta's plus addressing delivers it. - An alias —
info@example.comto the mailbox the alias points at (andinfo+tag@example.comlikewise). - The domain's catch-all — if it is on, every other address of the domain goes to the chosen mailbox.
- Nothing — with the catch-all off, an unknown address is refused by
Karta while the sender is still connected (
550), so the sender knows; it is never accepted and then silently dropped.
A message keeps the address it was sent to in its recipient fields, whichever mailbox receives it.
The catch-all
The catch-all is off by default. Choose a mailbox of the domain in Mail administration → Domains → (open the domain) → Catch-all, save, and mail for any address of the domain without its own mailbox or alias is delivered there. Choose Off to refuse those addresses again.
Kantoor tells Karta at once: the domain's * route starts delivering when a
catch-all is chosen and refuses (550) when it is off. The catch-all can point
only at a mailbox of the same domain; pointing it at a mailbox of another domain
is refused, and a mailbox that is the catch-all cannot be deleted until another
catch-all is chosen or the catch-all is turned off.
Aliases
An alias is another address in the selected domain. It can deliver into a mailbox
or forward to verified addresses. A mailbox target in another domain is allowed
when both domains have verified Karta attachments with the same explicit organisation
credential and provisioning operator. See cross-domain aliases
for conversion and lifecycle rules. In Aliases & catch-all on the domain, type the address (for
example info@example.com), choose the mailbox it delivers into, and add it.
The address must be free: it cannot already be a mailbox or another alias.
Forwarding to other addresses. Choose Forward to other addresses instead of a mailbox and enter up to five addresses, separated by commas. Local active mailboxes work immediately; external destinations must accept a confirmation email first. Open Forwarding on the alias to see pending and active addresses, resend a confirmation, pause forwarding or remove a target. An alias with no confirmed destination does not forward mail; Karta retries its delivery until a destination is confirmed. A forwarding-only alias does not grant anyone a sending identity.
Sending as a mailbox alias. The people who may open the target mailbox can use the
alias as a sending identity: it appears in Settings → Identities beside
their mailbox addresses, and the SMTP submission server accepts it as the
envelope sender and From. The sent copy is kept in the target mailbox's Sent
folder, so a reply to the alias is next to the mail it sent.
Deleting an alias stops delivery to it and removes the identities that sent as it; its Karta route is set to refuse. Add the address again if it is needed.
An alias's local part must be one Karta can route on its own: letters, digits,
. and - or _, no +. (Karta reads + as a plus tag, so an address with
one cannot have a route of its own; such a mailbox is reachable only through the
catch-all while that is on.)
Deleting a mailbox
Mail administration → Mailboxes → Delete removes a mailbox with its folders, messages, its filters, vacation reply, access grants and identities.
- A mailbox that still holds mail can be deleted only after a second, explicit confirmation that names the exact number of messages: deleting mail is never a side effect.
- A mailbox that is its domain's catch-all cannot be deleted; choose another catch-all or turn it off first.
- Its own Karta route stops delivering, and Karta is asked to forget this instance's copies of its mail (what Karta still holds is bounded by its own retention).
Keeping Karta in step
Kantoor keeps one exact route per mailbox and alias, plus the domain's *
route. Every change above syncs them. The Routes column on
Mail administration → Domains says whether the last sync worked; when it says
failed, the reason is shown under it and Re-sync routes tries again.
A domain attached by an older release still has the single * route that
accepted every address. After the release that introduced exact routes, run
mix kantoor.routes.sync (or bin/kantoor eval 'Kantoor.Release.sync_mail_routes()') once, or click Re-sync routes on the
domain.
Forwarding a mailbox
Open Settings → Forwarding (under Mail), choose the mailbox, then add up to five destinations. An administrator can also open Mail administration → Mailboxes → Forwarding on the mailbox. External recipients must open the confirmation email and explicitly choose Accept forwarding. Links expire after 24 hours and work once; simply opening a link does not activate forwarding.
Keep a copy in Kantoor is on by default. When off, the original is removed only after every active destination has accepted it. Pending destinations do not receive mail. Spam, viruses, unknown or failed scans, automatic replies and forwarding loops are blocked and the original stays in the mailbox. The inbox shows active forwarding and a link to manage it. The settings page shows waiting, blocked and failed delivery counts.
Forwarded mail uses the mailbox or alias as its From address. Reply-To keeps the original reply address, and attachments stay intact. Karta signs outgoing mail for the forwarding domain; that domain needs its normal verified DKIM and SPF records. This is the resend approach described in RFC 7960 §4.1.1.1. SRS alone would not make SPF align with the original From domain.
Forwards use a durable queue, at most 100 recipient deliveries per source per hour and 1,000 per domain per hour. Rate-limited mail waits. Other delivery failures retry up to 20 times, with delays capped at an hour; the original is kept on failure. A timeout after the next server accepted mail can cause a duplicate with the same Message-ID, as with ordinary SMTP retries. There is one forwarding hop: another Kantoor forward stops the loop.