[SOLVED] Remove User Blacklist

osgit

Member
Jan 12, 2021
55
5
13
What is the best way to remove all entries in a users blacklist? I've tried the following:
Code:
pmgsh delete /quarantine/blacklist/*@*.* -pmail 'user@domain.com'
200 OK
But all the addresses still exist in the blacklist. Attempting to delete the user addresses in the WebUI results in for the one with 6k+ entries results in:
Code:
Connection error - Server offline?
and the one with 600+ entries results in:
Code:
Connection error 596: Broken pipe

Apr 11 12:51:32 smtp pmgdaemon[990]: http header too large
Apr 11 12:51:37 smtp pmgdaemon[990]: problem with client 127.0.0.1; Connection timed out
Any ideas here on the best way to clear this for individual users? Thank you!
 
Do a GET on the blacklist with the specific `pmail` parameter [0].
This will return you a list of all entries. Now for each entry, delete it from the blacklist.

GLOBs don't work in the API, so you have to delete each entry on its own, or create a comma separated list of addresses, as mentioned in the API parameter description.


[0] https://pmg.proxmox.com/pmg-docs/api-viewer/#/quarantine/blacklist
 
It was easier just to shift+click about 175 blacklist entries and delete them that way in the WebUI. Thank you though.