[SOLVED] Delete IP from whitelist in console

Nov 14, 2019
36
2
28
36
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!