Export the list of global whitelist and blacklist email ids from proxmox

sanojs

Member
Sep 13, 2019
44
1
13
36
Hi,

Please could someone tell me how we can export the global whitelist and blacklist -domain and email list outside of the PMG in .txt format

Also need to export all outgoing and incoming email IDs list from proxmox for a year.

Thanks,
 
You can use the PMG REST api for this - either by using pmgsh or via curl (see the wiki-page on the PVE wiki - the API's are quite similar:
https://pve.proxmox.com/wiki/Proxmox_VE_API)

The path you're looking for is:
https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/config/ruledb/who/{ogroup}/objects

pmgsh outputs json, which you can then parse to get a textfile

also search the forum for posts mentioning pmgsh - e.g.:
https://forum.proxmox.com/threads/pmg-whitelist-location.85199/#post-374819


I hope this helps