On Tue, October 30, 2007 11:16 am, Mark Martinec wrote:

> Looks fine. I don't know why clamd can't read files in directory
> /var/amavis/tmp/amavis-20071029T132434-15307/parts/ . Just in case
> please check the protection of each directory in the path - all the
> directories from /, /var, ... to the .../parts. You can also try to become
> uid/gid clamav, and see if you are allowed to access from there amavisd
> temporary directories and files within.
>
> I think such problem has been reported before, I'm not sure it was
> on Centos. Could be just a coincidence, or some version of clamd is flawed
> (perhaps not honouring AllowSupplementaryGroups), or
> could be a bug in the OS - in its implementation of initgroups(3). Does
> clamd mumble anything about initgroups() not being supported or failed?
> The relevant code seems to be in clamd.c.

> It would be nice if someone who can reproduce this problem
> to come to the bottom of the issue.
>
> An easy way out would be to run both the clamd and amavisd
> under the same UID.

Mark,

thanks,

I just went to check and, guess what, errors stopped since Oct 29 at
22:18, and, now all's well.

perhaps I didn't reload deamons after I altered to give group xrw...?

if there is anything you want me to try, let me know

I'll try installing both amavisd and clam on another Centos system, and,
see what happens, is there a 'desired install order': install clam, then,
amavis ?


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

---


(from clam log)
---
Mon Oct 29 22:33:09 2007 -> +++ Started at Mon Oct 29 22:33:09 2007
Mon Oct 29 22:33:09 2007 -> clamd daemon 0.91.2 (OS: linux-gnu, ARCH:
i386, CPU: i386)
Mon Oct 29 22:33:09 2007 -> Running as user clamav (UID 104, GID 105)
Mon Oct 29 22:33:09 2007 -> Log file size limit disabled.
Mon Oct 29 22:33:09 2007 -> Reading databases from /var/clamav
..snip..
Mon Oct 29 22:33:13 2007 -> Self checking every 1800 seconds.
Mon Oct 29 22:57:11 2007 ->
/var/amavis/tmp/amavis-20071029T201954-30909/parts/p002:
GFI.VBS.Test FOUND
Mon Oct 29 22:57:22 2007 ->
/var/amavis/tmp/amavis-20071029T201954-30909/parts/p003:
GFI.VBS.Test FOUND

---

last failure from maillog

Oct 29 22:18:57 bilby amavis[30909]: (30909-12) (!!)ask_av (ClamAV-clamd)
FAILED - unexpected result:
/var/amavis/tmp/amavis-20071029T201954-30909/parts: lstat() failed.
ERROR\n


-- 

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