Rebuild mail SNI configuration files

This function rebuilds the mail SNI configuration files.

SecurityBasicAuth
Request
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
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/rebuild_mail_sni_config
Request samples
whmapi1 --output=jsonpretty \
  rebuild_mail_sni_config
Response samples
application/json
{
  • "data": {
    • "configs_built": [
      • "/etc/dovecot/sni.conf"
      ],
    • "success": 1
    },
  • "metadata": {
    • "command": "rebuild_mail_sni_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}