Rebuild mail SNI configuration files

This function rebuilds the mail SNI configuration files.

Authorizations:
query Parameters
reload_dovecot
integer
Default: 0

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

  • 1 - Reload Dovecot.
  • 0 - Do not reload Dovecot.
Enum: 0 1
Example: reload_dovecot=1

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  rebuild_mail_sni_config

Response samples

Content type
application/json
{
  • "data": {
    • "configs_built": [
      • "/etc/dovecot/sni.conf"
      ],
    • "success": 1
    },
  • "metadata": {
    • "command": "rebuild_mail_sni_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}