await box.aliases.add("contact@example.com");
box.aliasList; // updatedbox.aliases.add("contact@example.com")
box.alias_list # updatedThe host must be enabled
Like the mailbox's own address: an alias on a host with no mail records has nothing routing it. The refusal names the host.
Taken means taken, mailbox or alias
An address that is already a mailbox, or already an alias of another one, is refused. Two routes for one address would be two places a message could land, decided by whichever was checked first.
Reserved names are refused here too
The addresses a domain is expected to answer for cannot be taken as an alias any more than as a mailbox.
Aliases count, separately
usage().aliases counts them, apart from mailboxes — which is what makes an alias the cheap way to hold several addresses.
The routing is created with it
It starts receiving immediately, with no second step.