McDouglas wrote:

> Hi!

> I'm having a hard time figuring out why do i get the following error:

> May 13 15:46:19 debian amavis[5565]: (05565-02) (!!) ask_av 
> (ClamAV-clamd) FAILED - unexpected result: /var/lib/amavis/tmp/amavis-20
> 070513T153614-05565/parts: lstat() failed. ERROR\n 

> May 13 15:46:19 debian amavis[5565]: (05565-02) (!!) WARN: all primary 
> virus scanners failed, considering backups

> Googling around i have found, that ppl who had this problem, didn't add 
> clamav to the amavis group, and did not set the ownership on /var/lib/amavis

> However, i did all of these (and yes, AllowSupplementaryGroups true is 
> in the clamav conf) and still receive this error. Any ideas?

This is the third time someone has reported this. I don't understand
why the majority of people are not affected (SELinux enabled?)

The only cure I've seen is to run clamav as the amavis user. On a
Debian system using the Debian package this should get you there:

echo "DatabaseOwner amavis" >> /etc/clamav/freshclam.conf

/etc/init.d/clamav-daemon stop
/etc/init.d/clamav-freshclam stop
chown -R amavis:amavis /var/log/clamav
chown -R amavis:amavis /var/run/clamav
chown -R amavis:amavis /var/lib/clamav
sed -i 's/clamav adm/amavis adm/' /etc/logrotate.d/clamav-daemon
sed -i 's/clamav adm/amavis adm/' /etc/logrotate.d/clamav-freshclam
sed -i 's/User clamav/User amavis/' /etc/clamav/clamd.conf
sed -i 's/clamav adm/amavis adm/' /etc/logrotate.d/clamav-freshclam
/etc/init.d/clamav-freshclam start
/etc/init.d/clamav-daemon start

Hopefully I have not missed something. Latest version of sed may be

Gary V

This email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
AMaViS-user mailing list

Reply via email to