G Grogory Member Feb 15, 2019 26 0 6 67 Moscow Feb 18, 2019 #1 Hi, Is there any way to clean global Whitelist and Blacklist from command line (pmgsh) in Proxmox Mail Gateway?
Hi, Is there any way to clean global Whitelist and Blacklist from command line (pmgsh) in Proxmox Mail Gateway?
Stoiko Ivanov Proxmox Staff Member Staff member May 2, 2018 9,419 1,732 248 Feb 18, 2019 #2 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!
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!
G Grogory Member Feb 15, 2019 26 0 6 67 Moscow Feb 19, 2019 #3 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?
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?
Stoiko Ivanov Proxmox Staff Member Staff member May 2, 2018 9,419 1,732 248 Feb 19, 2019 #4 you can loop over the objects you get with pmgsh - and run `pmgsh delete` on each of them
Stoiko Ivanov Proxmox Staff Member Staff member May 2, 2018 9,419 1,732 248 Feb 19, 2019 #6 Glad that helps! If it works for you please mark the thread as solved - so that others know what to expect. Thanks!
Glad that helps! If it works for you please mark the thread as solved - so that others know what to expect. Thanks!
G Grogory Member Feb 15, 2019 26 0 6 67 Moscow Feb 19, 2019 #7 Yes, I marked as [SOLVED], Thanks a lot.