Create routing rule
create_routing_ruleCreate a domain routing rule that matches a local-part user (optionally as a prefix) and reroutes mail to specified target addresses; each user/prefix must be unique per domain.
Instructions
Creates a routing rule for a domain. It must not have the same user/prefix as another rule on that domain.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domainName": "<domainName>",
"prefix": "<prefix>",
"matchUser": "<matchUser>",
"targetAddresses": "<targetAddresses>"
},
"name": "create_routing_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefix | Yes | Whether matchUser is matched as a prefix of the local part | |
| catchall | No | Whether this rule will not fire if the address maps to a user. Defaults to false. | |
| matchUser | Yes | Local part to match, i.e. "user" in "user@domain.org" | |
| domainName | Yes | ||
| targetAddresses | Yes | Full email addresses this mail will be rerouted to |