This function configures a default (catchall) email address.
Important:
When you disable the Mail Receive role, the system disables this function.
fwdopt required | string The method to use to handle unroutable mail.
Example: fwdopt=fwd |
domain | string <domain> The domain whose default email behavior you want to configure. Note: This parameter defaults to the cPanel account’s main domain. Example: domain=example.com |
failmsgs | string Default: "No such person at this address" The failure message for the message’s sender. Note: Use this parameter if you used the Example: failmsgs=Failure echos loud. That address does not exist. Softly I regret. - an email failure haiku |
fwdemail | string <email> The email address to which the system forwards messages. Note: Use this parameter if you used the Example: fwdemail=admin@example.com |
pipefwd | string The application to which the system pipes messages. Note: Use this parameter if you used the Important: This parameter requires the File Storage role. Example: pipefwd=mailscript.pl |
uapi --output=jsonpretty \ --user=username \ Email \ set_default_address \ fwdopt='fwd'
{- "apiversion": 3,
- "func": "set_default_address",
- "module": "Email",
- "result": {
- "data": [
- {
- "dest": "admin@example.com",
- "domain": "example.com"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}