During the boot process, the amavisd boot script can and does initialize before antivirus daemons such as clamd. Although this is not required for amavisd-new to function all the time, it can cause errors if the antivirus daemon creates a socket which amavisd-new is configured with. Suggest adding "antivirus" to the use section of the init script. Reproducible: Always Steps to Reproduce: 1. Enable clamd socket access in amavisd.conf 2. Restart the machine Actual Results: Errors in syslog: May 4 09:34:44 mail amavis[5607]: (05607-01) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x8139aa4) Too many retries to talk to /var/run/clamav/clamd.sock (Can't connect to UNIX socket /var/run/clamav/clamd.sock: No such file or directory) at (eval 69) line 306. at (eval 69) line 504. May 4 09:34:44 mail amavis[5607]: (05607-01) (!!)WARN: all primary virus scanners failed, considering backups Expected Results: No errors
I get this similar error: May 16 11:54:53 gentoo amavis[18986]: (18986-03) (!!)ask_av (ClamAV-clamd) FAILED - unexpected result: /var/amavis/tmp/amavis-20070516T114305-18986/parts: lstat() failed. ERROR\n May 16 11:54:53 gentoo amavis[18986]: (18986-03) (!!)WARN: all primary virus scanners failed, considering backups Perhaps this is the same as above?
maybe doing this would help: depend() { need net use logger before mta after antivirus }
Fixed along with 2.5.1 bump, thanks!