Myself and a friend have been trying to wrap our brain around this.
I see in the PMG API docs, I can send a POST to /api2/json/quarantine/sendlink, with the "mail" attribute, and it should trigger the daily report.
I have tried to send this with curl via bash, php and even postman.
It does not trigger anything at all. With or without being authenticated.
In the log file, all I see entries similar to:
And nothing happens. Yes, I have verified I have pending quarantine for the account being issued.
The curl command I have been trying (unauthenticated) is
I have even tried with a -X POST. and also a -H 'Content-Type: application/json' to no avail.
All I want is for the system to trigger an email to the account in question. (or just return the link to the quarantine, but it does not sound like thats possible yet)
I see in the PMG API docs, I can send a POST to /api2/json/quarantine/sendlink, with the "mail" attribute, and it should trigger the daily report.
I have tried to send this with curl via bash, php and even postman.
It does not trigger anything at all. With or without being authenticated.
In the log file, all I see entries similar to:
::ffff:x.x.x.x - - [05/05/2022:20:12:23 -0500] "POST /api2/json/quarantine/sendlink HTTP/1.1" 500 13
And nothing happens. Yes, I have verified I have pending quarantine for the account being issued.
The curl command I have been trying (unauthenticated) is
curl https://hostname:8006/api2/json/quarantine/sendlink -k -d 'mail=user@domain.com'
I have even tried with a -X POST. and also a -H 'Content-Type: application/json' to no avail.
All I want is for the system to trigger an email to the account in question. (or just return the link to the quarantine, but it does not sound like thats possible yet)