create_routing_rule
Creates a domain routing rule to reroute mail for a matched user to specified target addresses and prevent duplicate user/prefix rules.
Instructions
Creates a new routing rule for a domain. Routing rule must not have the same user/prefix as any other existing rules for the 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 | ||
| catchall | No | Whether this is a 'catchall' rule that will not fire if address maps to a user | |
| matchUser | Yes | The local part of the user address to be matched, i.e. "user" in "user@domain.org" | |
| domainName | Yes | ||
| targetAddresses | Yes | List of full email addresses that this mail will be rerouted to |