[SOLVED] Delete IP from whitelist in console

Nov 14, 2019
36
2
28
35
Hello,
how can I add a handler for deleting IPs from the whitelist?
Code:
root@pmg:~$ pmgsh delete /config/whitelist/ip --ip 1.2.3.4
no 'delete' handler for 'config/whitelist/ip'

I am also interested in how to reload the whitelist after manually editing /etc/postfix/postscreen_access?

Cedric
 
I am also interested in how to reload the whitelist after manually editing /etc/postfix/postscreen_access?
This is not possible - the smtp-filter whitelist is in the database - use the api to edit it.

how can I add a handler for deleting IPs from the whitelist?
the objects are not stored by type only created:
Code:
pmgsh ls /config/whitelist/objects
get the id for the object and then delete that:
Code:
pmgsh delete /config/whitelist/objects/228

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!