List Info

Thread: ot: clamd lstat failed




ot: clamd lstat failed
user name
2007-10-28 23:35:43
I'm trying to install amavisd-new and clamav on a new Centos
4.x server,
they both seem to run OK, but, I see 'lstat() failed' in the
maillog:

is that because clamd needs permissions to /var/amavis/tmp/
?

I tried  : "chmod -R 0770 /var/amavis/tmp"  but it
didn't help

# groups clamav
clamav : clamav amavis


# ls -al /var/amavis
total 72
drwxr-x---   7 amavis amavis 4096 Oct 28 01:58 .
drwxr-xr-x  29 root   root   4096 Oct 28 15:37 ..
-rw-r-----   1 amavis amavis    0 Oct 29 13:23 amavisd.lock
-rw-r-----   1 amavis amavis    5 Oct 28 01:58 amavisd.pid
srwxr-x---   1 amavis amavis    0 Oct 28 01:58 amavisd.sock
drwxr-x---   2 amavis amavis 4096 Oct 28 01:58 db
drwxr-x---   2    103    104 4096 Oct 27 00:18 .razor
drwx------   2    101    102 4096 Oct 23 12:13
.spamassassin
drwxr-x---   4 amavis amavis 4096 Oct 29 14:03 tmp
drwxr-x---   2 amavis amavis 4096 Jun 29 05:23 var


---
Oct 29 14:37:58 bilby amavis[15307]: (15307-03) (!!)ask_av
(ClamAV-clamd)
FAILED - unexpected result:
/var/amavis/tmp/amavis-20071029T132434-15307/parts: lstat()
failed.
ERRORn
Oct 29 15:13:42 bilby amavis[17151]: (17151-03) (!!)ask_av
(ClamAV-clamd)
FAILED - unexpected result:
/var/amavis/tmp/amavis-20071029T140350-17151/parts: lstat()
failed.
ERRORn
---



-- 
Voytek


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: ot: clamd lstat failed
country flaguser name
Slovenia
2007-10-29 05:17:01
Voytek,

> I'm trying to install amavisd-new and clamav on a new
Centos 4.x server,
> they both seem to run OK, but, I see 'lstat() failed'
in the maillog:
>
> is that because clamd needs permissions to
/var/amavis/tmp/ ?
>
> I tried  : "chmod -R 0770 /var/amavis/tmp" 
but it didn't help
>
> # groups clamav
> clamav : clamav amavis

It's the other way around:

amavis:110:clamav


INSTALL:

- some virus scanners run as daemons or change UID when
checking files.
  It is easiest to run such virus scanners under the same
UID/GID (or at least
  within the same group) as amavisd, to avoid file
permission problems
  when virus scanner reads files prepared for checking by
amavisd daemon.
  Some virus scanners may require write permission to the
$TEMPBASE directory
  to be able to create auxiliary files there.

  If a different UID is preferred for an AV scanner, a
solution for ClamAV
  is to add user clamav to the amavis group (e.g.: 
vscan:110:clamav
  in a file /etc/group), and then add: 
AllowSupplementaryGroups yes
  to clamd.conf.


Mark

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: ot: clamd lstat failed
country flaguser name
Slovenia
2007-10-29 05:20:49
> > # groups clamav
> > clamav : clamav amavis
>
> It's the other way around:
>
> amavis:110:clamav

Oops, sorry, you showed the optput of 'groups' command,
not a line in /etc/groups. Seems you have it correctly.
Perhaps you are missing the  AllowSupplementaryGroups yes
in clamd.conf.

  Mark

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )