Description
This function configures a default (catchall) email 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 |
The domain. This parameter defaults to the cPanel account's main domain. |
A valid domain on the account. |
example.com |
fwdopt |
string |
Required The method to use to handle unroutable mail. |
|
fwd |
fwdemail |
string |
The email address to which the system forwards messages. Note: Use this parameter if you used the fwd method for thefwdopt parameter. |
A valid email address. |
admin@example.com |
failmsgs |
string |
The failure message for the message's sender. This parameter defaults to No such person at this address. Note: Use this parameter if you used the fail method for thefwdopt parameter. |
A valid string. |
Nobody\'s home. |
pipefwd |
string |
The application to which the system pipes messages. Note: Use this parameter if you used the pipe method for thefwdopt parameter. |
The location of a program or script, relative to the account's home directory. |
mailscript.pl |
Returns
Return |
Type |
Description |
Possible values |
Example |
data |
array of hashes |
An array of hashes of forwarder information. |
This array of hashes includes the domain and destreturns. |
|
domain |
string |
The domain. The function returns this value in the data hash. |
A valid domain on the account. |
example.com |
dest |
string |
The destination to which the system sends unroutable mail. The function returns this value in the data hash. |
|
admin@example.com |