API referenceSections

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

PUT /api/v1/tenants/{tid}/servers/{id}/mail-settings

Set 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

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • smarthost object required
    • enabled boolean required
    • host string optional
    • port integer optional
    • username string optional
    • password string optional write-only

      Only to change it; empty or absent keeps the sealed one

    • tls string optional
      Allowed values: "" "starttls" "ssl" "none"
  • spam_filter boolean required
  • antivirus boolean required
  • recipients_per_hour integer 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_id string required
  • smarthost MailSmarthost required
    • enabled boolean required
    • host string required
    • port integer required
    • username string required
    • tls string required
      Allowed values: "" "starttls" "ssl" "none"
  • spam_filter boolean required
  • antivirus boolean required
  • recipients_per_hour integer required

    MailEnable's server-wide cap per signed-in mailbox; 0 none

  • updated_at string (date-time) required
  • password_set boolean required

    A smarthost password is kept (sealed); it is never returned

  • engine string required
  • features MailFeatures required

    What the server's mail engine does with each feature (ADR 0072)

  • applied object | null required

    What the engine said on the last apply

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

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required