Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
ronger
New Contributor II

API for releasing quarantined email

Hi expert,

 

I’m going through the API document but cannot find any API endpoint to release quarantined email.

Does any body have ideas on how we can automate the quarantine release?

 

Best regards!

11 REPLIES 11
MFARRAG
Staff
Staff

Hi @ronger 

 

You can check the below  two screen shoot to release from personal or system quarantine , also what the firmware version you are used because of we have enhancement on API quarantine release  in 7.6.0 

 

System-Quaratine-Batch-Release.PNGPersonal-Quaratine-Release.PNG

 

Thanks and waiting your reply 

Mohamed Farrag
ronger
New Contributor II

Hi @MFARRAG ,

 

Thank you for your information. I'm using version 7.4.2.

Do you have the 7.6.0 API document to share?

 

Thanks and Regards!

MFARRAG

Hi @ronger 

 

Please find below snapshot for 7.6.0 release as requested 

 

personal-quaratine-release7.6.0.PNGsystem-quaratine-release.PNG

Mohamed Farrag
MFARRAG
Staff
Staff

@ronger 

 

Please let me know if your issue solved or you still have Queries regarding to API for releasing quarantined email ? 

Mohamed Farrag
ronger
New Contributor II

Hi @MFARRAG ,

 

Thanks for your warm support!

I tried to release the email but it does not work. The response is 200 OK but no email is release.

Attached is the response from postman. Do you have any ideas on this?

Email Release API.jpg

 

Bes regards,

MFARRAG

Hi @ronger 

I can see you miss one of parameter named otherEmails

{

  "folder": "Bulk",

  "mmkey": "1725455146.2441_128630_846749.011323#Q#484D5fff002991",

  "otherEmails": "",

  "reqAction": 7

}

I tested in my lab on 7.4.2 and it working as expected .please try the above mentioned parameters with changed MMKEY as you know , then update me .

 

also be sure you are using Basename on MMKEY not message ID on fortimail logs .

 

waiting your swift response  .

 

 

Mohamed Farrag
ronger
New Contributor II

Hi @MFARRAG ,

 

Thank you for your update. I tried this but does not work. I think the MMkey is not correct:

{
    "folder": "Bulk",
    "mmkey": "000001dafece$af785d30$0e691790$@bee.local",
    "otherEmails": "",
    "reqAction": 7
}

May I know how can I get the Basename on MMKEY? I cannot find it any where?

 

MFARRAG

@ronger 

 

Please find below my KB i replicated and type it step by step in my lab and working fine .

https://community.fortinet.com/t5/FortiMail/Technical-Tip-Releasing-System-Quarantined-Emails-via-Fo...

 

please check it and let me know .

Mohamed Farrag
ronger
New Contributor II

Hi @MFARRAG ,

 

Thank you for your prompt reply.

I follow same but it does not work in my lab. Does the API require any license? Currently I'm using a lab with default 15 days trial only.

FortiMail_API.png

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors