This function restores an account's email forwarders.
Important:
When the Receive Mail role is disabled, the system also disables this function.
Note:
You must use the backup
parameter when you call this function in one of the following formats:
multipart/form-data
request body to upload and restore a backup file to the server. For more information about this structure, read Mozilla's POST Method documentation.The email forwarder file to upload and restore.
Important:
Note:
To upload multiple email filter files, increment the parameter name. For example: backup-1
, backup-2
, and backup-3
.
uapi --input=json --output=jsonpretty \ --user=username \ Backup \ restore_email_forwarders
{- "apiversion": 3,
- "func": "restore_email_forwarders",
- "module": "Backup",
- "result": {
- "data": {
- "log_id": "2019-08-13T15:10:07Z.1",
- "log_path": "/home/cpuser/.cpanel/logs/restore-email-forwarders/2019-09-11T18:30:49Z.1.log",
- "messages": [
- "The system successfully restored the email forwarders from the 'aliases-example.com.gz' backup."
]
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}