[SOLVED] Remove User Blacklist


Jan 12, 2021
What is the best way to remove all entries in a users blacklist? I've tried the following:
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:
Connection error - Server offline?
and the one with 600+ entries results in:
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; 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.


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!