Set the smarthost, spam and virus filtering and the server-wide cap; needs server.manage
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/servers/{id}/mail-settingsSet the smarthost, spam and virus filtering and the server-wide cap; needs server.manage
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
smarthostobject requiredenabledboolean requiredhoststring optionalportinteger optionalusernamestring optionalpasswordstring optional write-onlyOnly to change it; empty or absent keeps the sealed one
tlsstring optionalAllowed values:"""starttls""ssl""none"
spam_filterboolean requiredantivirusboolean requiredrecipients_per_hourinteger required- minimum 0
- maximum 1000000
Example
{
"smarthost": {
"enabled": true,
"host": "string",
"port": 0,
"username": "string",
"password": "string",
"tls": ""
},
"spam_filter": true,
"antivirus": true,
"recipients_per_hour": 0
}Responses
200 OK
Content type: application/json
server_idstring requiredenabledboolean requiredhoststring requiredportinteger requiredusernamestring requiredtlsstring requiredAllowed values:"""starttls""ssl""none"
spam_filterboolean requiredantivirusboolean requiredrecipients_per_hourinteger requiredMailEnable's server-wide cap per signed-in mailbox; 0 none
updated_atstring (date-time) requiredpassword_setboolean requiredA smarthost password is kept (sealed); it is never returned
enginestring requiredWhat the server's mail engine does with each feature (ADR 0072)
enginestring requiredAllowed values:"""mailenable""smartermail"statusstring requiredAllowed values:"experimental""limited""not_supported"reasonstring optionalA code saying why, for the UI to explain
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
appliedobject | null requiredWhat the engine said on the last apply
enginestring optionalFields of MailFeature are shown above.
Fields of MailFeature are shown above.
Fields of MailFeature are shown above.
detailstring optional
Example
{
"server_id": "string",
"smarthost": {
"enabled": true,
"host": "string",
"port": 0,
"username": "string",
"tls": ""
},
"spam_filter": true,
"antivirus": true,
"recipients_per_hour": 0,
"updated_at": "2026-01-01T00:00:00Z",
"password_set": true,
"engine": "string",
"features": {
"engine": "",
"autoresponder": {
"status": "experimental",
"reason": "string"
},
"catch_all": {
"status": "experimental",
"reason": "string"
},
"out_limit_mailbox": {
"status": "experimental",
"reason": "string"
},
"out_limit_domain": {
"status": "experimental",
"reason": "string"
},
"spam_filter": {
"status": "experimental",
"reason": "string"
},
"spam_per_domain": {
"status": "experimental",
"reason": "string"
},
"antivirus": {
"status": "experimental",
"reason": "string"
},
"queue": {
"status": "experimental",
"reason": "string"
},
"smarthost": {
"status": "experimental",
"reason": "string"
},
"lists": {
"status": "experimental",
"reason": "string"
}
},
"applied": {
"engine": "string",
"spam_filter": {
"status": "experimental",
"reason": "string"
},
"antivirus": {
"status": "experimental",
"reason": "string"
},
"smarthost": {
"status": "experimental",
"reason": "string"
},
"detail": "string"
}
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required