Technical Tip: API for Releasing System Quarantined Email Excluding Original Recipient
| Description | This article describes how to release system-quarantined emails from FortiMail using an API, excluding the original recipient and sending them to a different recipient. |
| Scope | FortiMail v7.4.3 and Above, v7.6.0 and Above. |
| Solution |
config system web-service
curl -v -H "Content-Type: application/json" -X POST -d '{"name":"admin","password":""}' https://10.5.23.149/api/v1/AdminLogin -c cookie.txt <----- Replace admin and password with the relevant. credentials.
Set the parameters as follows:
{"reqAction": 1,"type": "system","folder": "Bulk","startindex": "0","pageSize": "50"}
For example:
"1728392935.1433_276175_100688.011326#Q#498D8pwO005515"
Set the parameters as shown below:
{"folder": "Bulk","mmkey": "1728392935.1433_276175_100688.011326#Q#498D8pwO005515","otherEmails": "user2@API.COM",
The default value for 'excludeOriginal' is false, and the API will include the original recipient by default when releasing the quarantined email.
|

