pmg-custom-eset is a custom antivirus integration for Proxmox Mail Gateway (PMG) using ESET's command-line scanner (cls).
It provides configurable virus scanning with optional logging and sample quarantining.
Key features include:
- Integration with ESET File Security (EFS) via its CLI tool
- Configurable strict mode to allow or block encrypted/damaged archives
- Debug modes for log output and suspicious sample collection
- Self-diagnosing
--selftestmode that simulates:- clean archive
- EICAR test file
- encrypted EICAR archive
- Auto-generated config file:
/etc/pmg/pmg-custom-check.conf
- Proxmox Mail Gateway 7 or newer
- ESET File Security installed with scanner at
/opt/eset/efs/sbin/cls/cls perl,zip, and standard GNU tools (usually preinstalled on PMG)
Follow these steps to install the scanner:
- Place the script in a system path:
cp pmg-custom-check /usr/local/bin/