Documentation
Catch-all address and plus addressing
Two paths catch mail that is not addressed to an exact address of the house: plus addressing (no setting, always on) and the catch-all address (an alias set up by the operator).
Plus addressing
name+tag@your-domain.com belongs to name@your-domain.com — without any
setting, for every account. The tag is part of the recipient address, not of
the message: anyone working with +invoices, +newsletter or +shop can
tell senders apart without creating new accounts. If the name@ account
does not exist, the tag does not help either.
Catch-all address
The catch-all address catches everything that belongs to nobody else: an
ordinary alias whose source is the bare domain — @your-domain.com. It makes
sense when mail to changing or misspelled addresses must never be lost; its
destination is an account of the house or an address outside.
The catch-all address is set up like any other alias: in the administration
form (create alias), with @your-domain.com as the source. If you prefer the
API, you can create the same alias there:
curl -X POST https://<server>/api/v1/admin/aliases \
-H "Authorization: Bearer <administrator-token>" \
-d '{"domain_id": <id>, "source_address": "@your-domain.com", "destination_address": "collected@your-domain.com"}'
Without such an alias, the usual 550 5.1.1 response for unknown recipients
applies.
Order of acceptance
When a message arrives, the server searches in three stages — the more exact one always wins:
- Exact address: an alias, user or agent with exactly this address.
- Tag: for
name+tag@, the tag is stripped andname@is checked. - Catch-all address: only now does the
@domainalias catch the rest.
An alias for name@ therefore does not cover name+tag@, and a name@
account always wins over the catch-all address.
What it does not do
- The catch-all address also accepts mail to guessed addresses. Whoever sets it up receives the spam sent to invented names — the price for nothing being lost.
- There are no rules by tag.
+invoiceslands in the same inbox as everything else; distribution into folders by tag is not built in. - Catch-all address and plus addressing are built and tested on the project's own test bench, but not shown with any foreign sender.
Something unclear or described wrong? Tell us — we will fix it. Your question shows us where the text falls short.