[SOLVED] configuration

Grogory

Member
Feb 15, 2019
26
0
6
66
Moscow
Hi, Is there any way to clean global Whitelist and Blacklist from command line (pmgsh) in Proxmox Mail Gateway?
 
Yes - the path for the Global white/blacklist is:
Code:
pmgsh get config/ruledb/who/
 pmgsh get config/ruledb/who/ID/objects
you need to replace ID, by the id you get when running the first command for the global white/blacklist

hope this helps!
 
Thanks for your reply. With pmgsh get I can get the Global white/blacklist,
But what command can I use to delete all entries in the Global white/blacklist? Is it possible?
 
you can loop over the objects you get with pmgsh - and run `pmgsh delete` on each of them
 
Glad that helps! If it works for you please mark the thread as solved - so that others know what to expect. Thanks!
 

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!