# Inboxes and addresses

> Personal and shared inboxes at your domain, aliases, forwarding, a catch-all, folders and search.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://mail.docs.sypnia.com/mailboxes/inboxes-and-addresses/

For agents: Mail mailboxes: real inboxes at the customer's domain (hola@laespiga.co). Kinds: personal (one person, a Sypnia Data auth user or a Sypnia account) and shared (a team; each message has an owner and a status open/waiting/done). Addresses: one primary per inbox, aliases, forwarding to another address, catch-all per domain (*@domain to one inbox), plus addresses that go to a webhook (Inbound). Folders: Inbox, Sent, Drafts, Archive, Spam, Trash and your own; labels; threads by Message-ID/In-Reply-To/References; full-text search (from, to, subject, body, attachments names, date ranges, has:attachment). MX set automatically by Sypnia Domains. CLI: mail inbox add/list, mail address add/alias/forward, mail catchall set.

A mailbox is a real inbox at **your** domain, for example `hola@laespiga.co`. Mail people send to it arrives there, you read and answer it, and the answer goes out from the same address. It is the other half of Mail: [Sending](https://mail.docs.sypnia.com/sending) is your app writing to people; mailboxes are people writing to you.

## Kinds of inboxes

| Kind         | For                            | How it works                                                                                                                                                                              |
| ------------ | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Personal** | one person: `ana@laespiga.co`  | Belongs to one person: a user of your Sypnia Data project or a Sypnia account. Only they read it (and admins, if your organization allows it).                                            |
| **Shared**   | a team: `pedidos@`, `soporte@` | Several people read it. Each conversation has an **owner** and a **status**: open, waiting or done. Nobody answers the same message twice: when someone opens a reply, the others see it. |

## Addresses

- **Primary address**: the one the inbox is known by.
- **Aliases**: more addresses into the same inbox (`ventas@` and `hola@` into one).
- **Forwarding**: a copy of everything to another address, inside or outside Mail.
- **Catch-all**: everything sent to an address that does not exist at the domain goes to one inbox you choose. Off by default, because it also catches spam to invented addresses.
- **To your app**: an address can still go to a webhook instead of an inbox, as in [Inbound](https://mail.docs.sypnia.com/inbound).

```bash
npx @sypnia/mail inbox add soporte@laespiga.co --shared --members ana@laespiga.co,luis@laespiga.co
npx @sypnia/mail address alias hola@laespiga.co --to soporte@laespiga.co
npx @sypnia/mail address forward facturas@laespiga.co --to contador@estudio.co
npx @sypnia/mail catchall set laespiga.co --to soporte@laespiga.co
```

## Folders, labels and search

Every inbox has **Inbox, Sent, Drafts, Archive, Spam and Trash**, plus folders and labels of your own. Messages are grouped into **conversations** by their headers (`Message-ID`, `In-Reply-To`, `References`), so a reply lands next to what it answers.

Search covers sender, recipients, subject, body and attachment names, with filters such as `from:`, `to:`, `has:attachment`, `before:` and `after:`.

## Your domain's records

Receiving needs the domain's `MX` record pointing to Mail. If the domain is in [Sypnia Domains](https://domains.docs.sypnia.com), Mail sets `MX`, DKIM, SPF and DMARC for you. If not, the console and `npx @sypnia/mail domains records` print what to add. A domain that already receives mail in Google Workspace or Microsoft 365 should not move its `MX` until you are ready: start with a **subdomain** (`equipo.laespiga.co`) and move the main domain later.
