AXIGEN Reports Filter ClamAV Lstat() Errors in Logs

ClamAV Filter fails to scan messages returning "[ERROR]: lstat() failed." in logs

Issue cause

ClamAV filter cannot access and scan messages from AXIGEN queue due to insufficient system permissions.

Solution

In order to solve this issue you need to configure ClamAV to run with axigen system user.
This can be done by editing the ClamAV configuration file /etc/clamd.conf or /etc/clamav/clamd.conf and add or edit the User configuration line to match the following line:

User axigen
This could also be solved by adding the clamav system user to axigen system group by issuing the following command on the machine running AXIGEN:

usermod -G axigen clamav
OS: LinuxFreeBSDNetBSDOpenBSDSolaris