Set email forwarding (safe merge or replace-all)
set_email_forwardingSet up email forwarding for your domain: add, update, or remove forwarding rules, preserving existing ones by default, or replace all rules when needed.
Instructions
Configure email forwarding. Like DNS setHosts, Namecheap's setEmailForwarding is REPLACE-ALL, so this tool defaults to a safe merge: it reads existing rules, upserts the ones you provide (matched by mailbox), removes any you list in remove, and writes the full set back — untouched rules are preserved. Use mode=replace_all (with confirm=true) to overwrite every rule with exactly forwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | merge | |
| domain | Yes | ||
| remove | No | Mailboxes (local parts) to remove (merge mode only). | |
| confirm | No | Required true for mode=replace_all. | |
| forwards | No | Rules to add or update. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| account | Yes | ||
| success | Yes | ||
| forwards | Yes | ||
| provider | Yes | ||
| environment | No |