sendmock email forward-rules create
Add a forward rule at the end of the list.
sendmock email forward-rules create [flags]
| Flag | Type | Description |
|---|---|---|
| --name <name>required | string | A name for the rule, shown in the list.Example: Invoices to finance QA |
| --filter <filter> | object (JSON) | The webhook rule filter, over email fields; null matches every email. |
| --to <to>required | string[] (repeat for more) | Real addresses; each must be on the relay allowlist.Example: ["[email protected]"] |
| --enabledrequired | boolean | Off rules are kept but skipped. --no-enabled sets it to false. |
Example
sendmock email forward-rules create --name 'Invoices to finance QA' --to [email protected] --enabled
Output with --json: ForwardRule. Exit codes: 0, 1, 2.
- API
- POST
/api/v1/forward-rules - MCP tool
sendmock_forward_rule_create- In the app
- Settings > Email > Auto-forward rules > Add rule