# Routing and forwarding

> Rules that decide where each incoming message goes.

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

For agents: Mail inbound rules in order, first match wins: exact address, subdomain catch-all, plus addressing (plus field in JSON), unmatched dropped and logged; actions webhook, Run function, forward (re-sent from your domain with original sender in Reply-To for DMARC; counts as sent; external addresses confirm once), --store keeps in log only.

Rules are checked in order; the first that matches wins.

| Match                    | Example                                                     | Action                            |
| ------------------------ | ----------------------------------------------------------- | --------------------------------- |
| exact address            | `soporte@laespiga.co`                                       | webhook, Run function, or forward |
| catch-all of a subdomain | `*@reply.laespiga.co`                                       | same                              |
| plus addressing          | `pedidos+1042@laespiga.co` gives `plus: "1042"` in the JSON | same                              |
| nothing matches          |                                                             | dropped, recorded in the log      |

## Forwarding

`--forward ana@gmail.com` sends a copy to another inbox. Forwarded messages are re-sent from your domain with the original sender in `Reply-To` (so DMARC passes) and count as sent e-mails. Forwarding to addresses outside your organization needs the address to confirm it once.

## Store only

`--store` keeps messages in the log without sending them anywhere, to read them in the console or with `mail inbound ls`.
