Skip to main content

Enable or disable enterprise SMTP

Enable or disable enterprise SMTP. PUT /api/openapi/v1/mail-servers/current/activation, scope admin.v1.mail-settings.manage.

  • Scope:admin.v1.mail-settings.manage
  • Permission:Manage enterprise mail(mail-settings)
  • Permission type:Manage
  • Endpoint:PUT/api/openapi/v1/mail-servers/current/activation
Changes only the enabled state of the saved SMTP configuration. Disabling preserves the settings and password, requires no server fields, and does not require readable credentials. Enabling requires a complete, valid saved configuration and, when authentication is enabled, a readable saved password. No test email is sent.

Authentication and request headers

Use an application API key. Manage permission does not imply read or test-send permission.
NameLocationTypeRequiredDescription
AuthorizationheaderstringYesBearer <API_KEY>
X-Request-IdheaderstringNoRequest tracing identifier

Request parameters

NameLocationTypeRequiredDescription
enabledbodybooleanYestrue enables SMTP; false disables it without other configuration fields
versionbodyintegerYesCurrent configuration version from the read endpoint; non-negative. After saving, use the newly returned version

Request example

Response

200 OK
NameTypeRequiredDescriptionExample
auth_enabledbooleanYesServer requires authenticationfalse
ca_pemstringYesCustom CA certificate (optional)"<string>"
enabledbooleanYesWhether custom SMTP is enabledfalse
central_availablebooleanYesWhether the deployment provides the system mail servicetrue
delivery_availablebooleanYesWhether custom SMTP or the system service is available for deliverytrue
configuredbooleanYesWhether configuration is presentfalse
from_addressstringYesSender email"<string>"
from_namestringYesDisplay name"<string>"
hoststringYesSMTP host"<string>"
last_testOpenapifacadeMailTestResultNoLast test result{"at":"2026-08-27T10:00:00Z","code":"<string>","server_version":0,"status":"unknown","template_id":"<string>"}
last_test.atstring · date-timeYesTest time"2026-08-27T10:00:00Z"
last_test.codestringYesError code"<string>"
last_test.server_versioninteger · int64YesMail server configuration version0
last_test.statusstringYesTest status"unknown"
last_test.template_idstringNoTemplate ID"<string>"
password_configuredbooleanYesWhether a password is configuredfalse
portinteger · int64YesPort0
providerstringYesMail delivery provider"central"
tls_modestringYesEncryption mode"tls"
updated_atstring · date-timeNoUpdated at"2026-08-27T10:00:00Z"
usernamestringYesAuthentication account"<string>"
versioninteger · int64YesVersion used for concurrent update checks0
Response example
default Flat business error
NameTypeRequiredDescriptionExample
codestringNoStable business error code"<string>"
detailstringYesHuman-readable error description"<string>"
detailsOpenapiErrorDetailsNoTest result details{"field":"<string>","reason":"<string>","suggestion":"<string>"}
details.fieldstringNoRequest field that failed validation"<string>"
details.reasonstringNoStable validation failure reason"<string>"
details.suggestionstringNoSuggested normalized value"<string>"
errorstringYesStable HTTP error type"<string>"
Response example