This function checks whether a cPanel account will automatically create mailboxes when it receives an email address in plus address format.
Note:
To enable or disable this functionality, use the UAPI's Email::enable_mailbox_autocreate
and Email::disable_mailbox_autocreate
functions.
uapi --output=jsonpretty \ --user=username \ Email \ get_mailbox_autocreate \ email='username@example.com'
{- "apiversion": 3,
- "func": "get_mailbox_autocreate",
- "module": "Email",
- "result": {
- "data": 1,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}