add mail domain
add_mail_domainCreate a mail domain within HestiaCP with optional DKIM, antivirus, and anti-spam settings.
Instructions
Create a mail domain. Executes verified command v-add-mail-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": {
"user": "<user>",
"domain": "<domain>"
},
"name": "add_mail_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dkim | No | yes | |
| user | Yes | ||
| domain | Yes | ||
| restart | No | yes | |
| antispam | No | yes | |
| dkimSize | No | 2048 | |
| antivirus | No | yes | |
| rejectSpam | No | no |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| command | Yes |