block compressed attachments with password

Password protected archives (e.g. zip-files) can get detected by clamAV as Heuristic - you can enable this in the virus-detector settings.
This then causes the spam-detector to add the heuristic score as points to the spam result, which you can use in the rule-system
see:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_clamav

I would set the heuristic score to a rather high number and then either quarantine or block mails which reach that number

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!