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
required.

http://marc.info/?l=amavis-user&m=117661745018897

Gary V


-------------------------------------------------------------------------
This SF.net 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.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to