Proxmox Mail Gateway ships and uses the open source ClamAV antivirus engine in its default installation.
Certain environments have the need for a better virus detection rate than the one achieved by ClamAV.
For these setups Proxmox Mail Gateway offers an integration with the Avast Antivirus for Linux.
Avast Antivirus for Linux is commercial software and you will need to purchase a license in order to use it.
The following facts are why it can be integrated with Proxmox Mail Gateway as an alternative to ClamAV:
- The licensing is based on the number of installations instead of other licensing schemes such as the number of processed mails or mailboxes.
- The software runs daemonized and thus reads and caches the AV definitions once upon startup instead of each time a file is scanned
The following HOWTO provides the necessary steps to install and configure Avast within a Proxmox Mail Gateway installation.
Installing Avast Antivirus for Linux
Proxmox Mail Gateway is based on Debian GNU/Linux - thus you need to follow the installation instruction for Debian systems.
To configure the Avast repository and install the software:
- Create the appropriate sources.list entry:
echo "deb http://deb.avast.com/lin/repo debian-buster release" > /etc/apt/sources.list.d/avast.list
- Verify the signing key for the repository from Avast:
- Get the key
- Read the checksum
- The result should be
- Add the GPG key
apt-key add avast.gpg
- Update the apt package information and install the software
apt install avast
Follow the instructions provided by Avast to activate your purchased license.
After enabling your license you need to restart the
systemctl restart avast.service
Integration with Proxmox Mail Gateway
Enabling the Avast scanner in Proxmox Mail Gateway is achieved by editing the Promox Mail Gateway's configuration file
/etc/pmg/pmg.conf and adding the line
avast 1 to the
section: admin avast 1 email firstname.lastname@example.org
Finally you need to restart the
pmg-smtp-filter service, or reboot your Promox Mail Gateway:
systemctl restart pmg-smtp-filter
Should you need further help, consider getting a enterprise support subscription