mailbox_update
Modify an existing mailbox: reset its password, change quota, toggle enabled state, or replace forwarding addresses and aliases. Use dry_run first, then confirm:true to apply changes.
Instructions
Change an existing mailbox: reset its password, enable/disable it, change quota, redirects (forwarding), aliases, save_in_box, spam_to_junk. Maps to PUT /api/mail/box/{box_id}. WRITE operation — set dry_run:true first, then confirm:true to execute. Only the fields you pass change: the tool reads the current box and re-sends the rest (the panel form PUTs the whole object). redirects and aliases REPLACE the whole list — pass the full desired list, [] to clear. Password reset: password or generate_password:true (returned ONCE as generated_password, never retrievable later). WARNING: a password reset immediately breaks every mail client / integration still using the old password — existing passwords cannot be viewed through FastPanel, only replaced. Omitting the password keeps the current one. With the local password store enabled, any new password is saved there automatically (mailbox_password_get). Async: the response has action:"UPDATING"; poll mailbox_get until action is null.
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": {
"box_id": "<box_id>"
},
"name": "mailbox_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quota | No | Quota in MB; 0 = unlimited | |
| box_id | Yes | Mailbox id from mailboxes_list | |
| aliases | No | Full replacement list of alias local parts; [] removes all | |
| confirm | No | Must be true to execute. Safety guard. | |
| dry_run | No | If true, show the payload that would be sent without executing. | |
| enabled | No | false disables the mailbox (no login/delivery) without deleting it | |
| password | No | New password (8-255 chars). Omit to keep the current one. | |
| redirects | No | Full replacement list of forwarding addresses; [] removes all | |
| save_in_box | No | Keep a local copy of forwarded mail. false + redirects = forward-only box. | |
| spam_to_junk | No | Deliver detected spam to the Junk folder | |
| generate_password | No | Reset to a strong random 24-char password and return it once in the result. |