---
title: "(Deprecated) Disable SNI mail services for domains"
method: GET
path: "/disable_mail_sni"
tags: ["Mail", "Mail Server Settings"]
deprecated: true
---

# (Deprecated) Disable SNI mail services for domains

`GET /disable_mail_sni`

> **Deprecated.**

This function is deprecated and always fails.

**Note:**

Mail SNI is **always** enabled. cPanel & WHM no longer allows mail SNI to be disabled.

* Functions that disable Mail SNI fail and make no changes.
* Functions that enable Mail SNI succeed with a warning that Mail SNI is always enabled.

## Query parameters

- `domain` string

## Response `200`

HTTP Request was successful.

- object
  - `data` object
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed.
    - `result` 0 — This function always returns `0` (failure) because mail SNI can no longer be disabled. * `0` - Failed.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
