When you disable the Receive Mail role, the system disables this function.
We recommend that you use the UAPI UserManager::create_user function to create an email address instead of this function. This function is incompatible with the Reset Password feature.
SecurityBasicAuth
Request
query Parameters
required
string or string
The email account username or address.
A valid email account username. For example, user to create user@example.com.
A valid email address.
Note:
You cannot enter cpanel as an account name when you create an email account.
Example: email=user
password
required
string
The email account password.
Example: password=123456luggage
domain
string <domain>
Default: "The cPanel account's main domain."
The email account's domain. For example, example.com to create user@example.com.
Example: domain=example.com
password_hash
string
The account's password hash.
Notes:
You can use this parameter instead of the password parameter. However, you cannot use both password and password_hash parameters in the same request.
You can find your server's hash type in the /etc/sysconfig/authconfig file.