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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!