Description
This function disables SNI mail services on the specified domains.
Note:
After you change the SNI status, you must run UAPI's rebuild_mail_sni_config
function.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domains |
string |
Required The account's domain or domains. |
A pipe-delimited list of the account's domains. |
example.com|example1.com|example2.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
failed_domains |
hash |
A hash of the domains that failed to disable mail SNI. |
This hash includes thedomain name return. |
|
domain name |
string |
The reason the domain failed to disable SNI. Note: The domain name is the return name. The function returns this value in the failed_domains hash. |
A valid string. |
Sorry, example.com is not one of the domains on your account. |
updated_domains |
hash |
A hash of the domains with disabled mail SNI. |
This hash includes thedomain name return. |
|
domain name |
Boolean |
Whether the domain's SNI is disabled. Note: The domain name is the return name. The function returns this value in the updated_domains hash. |
|
1 |