This function retrieves the destination to which the system forwards a system account's email.
Note:
root
account.suexec
module, the nobody
user receives bounce messages from email that CGI scripts send.Important:
When you disable the Receive Mail role, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ get_user_email_forward_destination \ user='root'
{- "data": {
- "forward_to": [
- "user@example.com"
]
}, - "metadata": {
- "command": "get_user_email_forward_destination",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}