How to delete all the emails in Quarantine

Hello,

Is there a way for me to do a partial for subject?
Lets say I get a bunch of email with certain words or phrases, I want to delete all the messages in quarantine with the word "gift" in the subject how would I do that?

My example would be if I wanted to count all those with gift within the subject, not as the entire subject.
pmgdq -a count -u gift


Thanks
 
Last edited:
Is there a way for me to do a partial for subject?
Lets say I get a bunch of email with certain words or phrases, I want to delete all the messages in quarantine with the word "gift" in the subject how would I do that?
there is not ready cli tool for that - either use the GUI (manual selection) - or you need to script that yourself with the REST API (and something like jq):

https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/quarantine/spam
(for connecting to the API - take a look at the wiki-page for PVE (the APIs are similar) https://pve.proxmox.com/wiki/Proxmox_VE_API)
and
https://cameronnokes.com/blog/jq-cheatsheet/

I hope this helps!
 
any tips to clean only one virus quarantine completely? sometimes accumulate a lot of unwanted items and it is very laborious to remove one by one through the web interface;
 

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!