v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
SSL
SNI Email Settings

Start SNI configuration files rebuild

This function rebuilds the SNI configuration files.

Note:

  • You must run this function after you change the SNI status through the UAPI's enable_mail_sni or disable_mail_sni functions.
  • Mail SNI is always enabled.
    • Functions that enable Mail SNI succeed with a warning that Mail SNI is always enabled. Functions that disable Mail SNI fail and make no changes.
    • Functions that disable Mail SNI will fail and make no changes.

Important:

When you disable the Calendars and Contacts, Receive Mail, Web Disk, Webmail, and Web Server roles, the system disables this function.

get/SSL/rebuild_mail_sni_config

Query parameters

reload_dovecot0 | 1
Example:1

Whether to reload the Dovecot service after the system rebuilds the configuration files.

  • 1 - Reload Dovecot.
  • 0 - Do not reload Dovecot.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "rebuild_mail_sni_config",
  "module": "SSL",
  "result": {
    "data": {
      "success": 1
    },
    "status": 1
  }
}