v1

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

Enable SNI mail services for domain

This function enables SNI mail services on the specified domains.

Warning:

Mail SNI is always enabled.

  • Mail SNI is not compatible with Webmail and will not function for any Webmail connection. Webmail connections use the cPanel service SSL certificate.
  • 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.

Important:

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

get/SSL/enable_mail_sni

Query parameters

domainsstring required
Example:example.com|example1.com|example2.com

A pipe-delimited list of the account's domains.

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": "enable_mail_sni",
  "module": "SSL",
  "result": {
    "data": {
      "failed_domains": {
        "example2.com": "Sorry, example.com is not one of the domains on your account."
      },
      "updated_domains": {
        "example.com": 1,
        "example1.com": 1
      }
    },
    "messages": [
      "cPanel & WHM always enables mail SNI from now on."
    ],
    "status": 1
  }
}