This function lists a domain's forwarders.
Important:
When you disable the Receive Mail role, the system disables this function.
domain required | string <domain> The domain. Example: domain=example.com |
regex | string A Perl Compatible Regular Expression (PCRE) that filters the results. If you do not use this parameter, the function returns results for all of the account's filters. Example: regex=user |
uapi --output=jsonpretty \ --user=username \ Email \ list_forwarders \ domain='example.com'
{- "apiversion": 3,
- "func": "list_forwarders",
- "module": "Email",
- "result": {
- "data": [
- {
- "dest": "forwarded@example.com",
- "forward": "user@example.com",
- "html_dest": "forwarded@example.com",
- "html_forward": "user@example.com",
- "uri_dest": "forwarded%40example.com",
- "uri_forward": "user%40example.com"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}