Topic: ClamAV permission problems
==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====
I use iRedMail 0.8.4, LDAP backend, CentOS 6.4 and iRedAmin Pro 1.9
In my maillog I have tons of entries like this:
May 31 15:22:51 mail1 amavis[17805]: (17805-14) (!)ClamAV-clamd av-scanner FAILED: CODE(0x2e10410) unexpected , output="/var/spool/amavisd/tmp/amavis-20130531T070101-17805-MExCgKdR/parts: lstat() failed: Permission denied. ERROR\n" at (eval 116) line 897.
The file permissions are:
drwxr-x--- 3 amavis amavis 4096 31. Mai 07:01 amavis-20130531T070101-17805-MExCgKdR
drwxr-x--- 3 amavis amavis 4096 31. Mai 07:01 amavis-20130531T070101-17806-eJhduccQ
In my clamd.conf I have:
# Run as another user (clamd must be started by root for this option to work)
# Default: don't drop privileges
User clamav
In my group file I have:
clamav:x:492:clamav,clam
amavis:x:491:clamav
Why does this permission error occur? What kind of permission is required?? If I set 777 it works, but that is not the recommended configuration I think.....
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.