Disable cPanel account mailbox autocreation

This function disables the system's ability to automatically create mailboxes for a cPanel account.

Note:

When you enable the UAPI's Email::enable_mailbox_autocreate function, the system automatically creates mailboxes. The system creates a new mailbox when it receives an email address in plus address format and that mailbox does not exist. For example, receiving an email from the user+newmailbox@example.com address creates the newmailbox mailbox if the newmailbox mailbox does not exist.

SecurityBasicAuth
Request
query Parameters
email
required
string <email>

The email account address for which to disable mailbox autocreation.

Example: email=username@example.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Email/disable_mailbox_autocreate
Request samples
uapi --output=jsonpretty \
  --user=username \
  Email \
  disable_mailbox_autocreate \
  email='username@example.com'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "disable_mailbox_autocreate",
  • "module": "Email",
  • "result": {
    • "data": 1,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}