I have random instances where clamav gives this error, and ends up droping emails, on posfix.
The below command shows the following output,
Cat /var/log/mail.log | grep clamav
Sep 17 01:10:11 mail amavis[2016115]: (2016115-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: Connection refused
Sep 17 01:10:11 mail amavis[2016115]: (2016115-03) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Sep 17 01:10:17 mail amavis[2016115]: (2016115-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: Connection refused
Sep 17 01:10:17 mail amavis[2016115]: (2016115-03) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 110) line 659.\n
Sep 17 01:10:17 mail amavis[2016115]: (2016115-03) (!)WARN: all primary virus scanners failed, considering backups
however I cant seem to get this information from "pflogsumm". Is there any way to have these type of error also in there ?