Out of the box, I got this error and haven't been able to change the behavior: Apr 22 10:35:42 mcq amavis[22581]: (22581-01) (!)connect to /run/clamd.scan/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /run/clamd.scan/clamd.sock: Permission denied Apr 22 10:35:42 mcq amavis[22581]: (22581-01) (!)ClamAV-clamd: All attempts (1) failed connecting to /run/clamd.scan/clamd.sock, retrying (2)
A Fedora 38 Amavis+ClamAV setup does not use "ClamAV-clamd" but
"ClamAV-clamdscan" inside [1], which works out-of-the-box with the
clamd@amavisd service in my local test.
[1] /etc/amavisd/amavisd.conf