ok,thanks!you can do an api call to '/api2/json/quarantine/blacklist' with parameter 'pmail=EMAILOFUSER'
e.g. with pmgsh:
Code:pmgsh get /quarantine/blacklist -pmail myemail@example.com
(analog for whitelist)
hi,team,I want to know if it is possible to export the information in the recipient list the same as the black and white list?you can do an api call to '/api2/json/quarantine/blacklist' with parameter 'pmail=EMAILOFUSER'
e.g. with pmgsh:
Code:pmgsh get /quarantine/blacklist -pmail myemail@example.com
(analog for whitelist)
hi,team,I want to know if it is possible to export the information in the recipient list the same as the black and white list?you can do an api call to '/api2/json/quarantine/blacklist' with parameter 'pmail=EMAILOFUSER'
e.g. with pmgsh:
Code:pmgsh get /quarantine/blacklist -pmail myemail@example.com
(analog for whitelist)
yes - check the API-viewer to see all paths the PMG API offers:
https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/statistics/
Specifically for the sender/receiver/contact statistics there was a change recently - so you might want to use the new path - see:
https://git.proxmox.com/?p=pmg-api....;hpb=d865dfba11fe7a8a3a3f3ebb6ad7f08c1479c956
I hope this helps!
CLI: | pmgsh get /statistics/receiver/{receiver} |
pmgsh get /statistics/receiver/<address> -year 2021
pmgsh get /statistics/detail --address <address> --type receiver --year 2021
thanks!check the parameters described below...
e.g. to get the statistics for a particular address for the complete year 2021:
Code:pmgsh get /statistics/receiver/<address> -year 2021 pmgsh get /statistics/detail --address <address> --type receiver --year 2021
the latter being the new api-endpoint which you should use in the future (the first will be removed with PMG 7.0
We use essential cookies to make this site work, and optional cookies to enhance your experience.