1 (edited by mensmaximus 2013-03-22 22:35:00)

Topic: [solved] CLAMAV broken after yum update

==== Required information ====
- iRedMail version: iRedMail-0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): iRedAdmin-Pro-MySQL 1.5.1
- Linux/BSD distribution name and version: Centos 6.4
- Related log if you're reporting an issue:
====

After an yum update ClamAV is failing with a permission denied error:

Mar 22 14:59:07 tribun amavis[2290]: (02290-01) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/spool/amavisd/tmp/amavis-20130322T145907-02290-wVQaUdd8/parts: lstat() failed: Permission denied. ERROR\n"
Mar 22 14:59:07 tribun amavis[2290]: (02290-01) (!)ClamAV-clamd av-scanner FAILED: CODE(0x37a51a8) unexpected , output="/var/spool/amavisd/tmp/amavis-20130322T145907-02290-wVQaUdd8/parts: lstat() failed: Permission denied. ERROR\n" at (eval 115) line 897.
Mar 22 14:59:07 tribun amavis[2290]: (02290-01) (!)WARN: all primary virus scanners failed, considering backups

1. The config files for clamd and amavisd are still the old ones
2. Both daemons still run under the same users as before the update
3. Permissions on /var/spool/amavisd/ and subsequent dirs are still amavis.amavis
4. User clamav is still in the amavis group
5. A manual scan works well on a directory that failed in the maillog:
    clamscan -r -l scan.log tmp/
    tmp/amavis-20130322T145907-02290-wVQaUdd8/email.txt: OK

What am i missing? Any hint is welcome.

Regards

Michael

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [solved] CLAMAV broken after yum update

While i checked users and config files i did not car about file and directory permissions. I didnt even think a yum update would change anything. But it does.

/var/spool/amavisd/tmp was set to 700 after the update. I changed it to 755 now and clamav is working well again.

Issue solved.

Michael