Description
This function retrieves the domain's default address and its rules. The cPanel account's default (catchall) address handles unroutable mail that the account's domains receive.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Email::list_default_address
— This function retrieves a domain's default address.
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 |
domain |
string |
Required The domain. |
A valid domain on the cPanel account. |
example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
domain |
string |
The domain. |
A valid domain on the cPanel account. |
example.com |
defaultaddress |
string |
The method that the domain uses to handle unroutable mail. |
|
catchall@example.com |
reason |
string |
A reason for failure. Note: This functiononly returns areason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |