thanks for the info...
I am using clamav-0.98.1 from epel and notice it work out of the box without any permission error
[root@mail ~]# yum list installed | grep clam
clamav.i686 0.98.1-1.el6 @epel
clamav-db.i686 0.98.1-1.el6 @epel
clamd.i686 0.98.1-1.el6 @epel
here is the folder permision of /var/spool/amavisd/tmp
[root@mail amavisd]# ls -all
total 28
drwxr-x---. 7 amavis amavis 4096 Feb 28 04:39 .
drwxr-xr-x. 9 root root 4096 Jul 21 2012 ..
srwxr-x--- 1 amavis amavis 0 Feb 28 04:39 amavisd.sock
drwx------. 2 amavis amavis 4096 Feb 28 04:39 db
drwx------. 2 amavis amavis 4096 Feb 28 08:56 quarantine
drwxr-x---. 2 amavis amavis 4096 Dec 26 2012 .razor
drwx------. 2 amavis amavis 4096 Jul 21 2012 .spamassassin
drwxr-x---. 4 amavis amavis 4096 Feb 28 08:56 tmp
[root@mail amavisd]# pwd
/var/spool/amavisd
[root@mail amavisd]#
I just test send an eicar virus files on iRedMail-0.8.6 and it can detect and quarantine it without any error or problem...
Feb 28 08:56:12 mail amavis[18569]: (18569-10) Blocked INFECTED (), MYUSERS <root@xxx.org> -> <xxx@xxx.org>, quarantine: virus-H27u2bpCC57C, Message-ID: <20140228005607.7851ABF6A4@xxx.org>, mail_id: H27u2bpCC57C, Hits: -, size: 1229, 4575 ms
Feb 28 08:56:13 mail postfix/cleanup[20972]: 54F05C1B4E: message-id=<VAH27u2bpCC57C@xxx.org>
Feb 28 08:56:13 mail postfix/qmgr[1430]: 54F05C1B4E: from=<postmaster@xxx.org>, size=2388, nrcpt=1 (queue active)
Feb 28 08:56:13 mail postfix/local[20982]: 9E339C0784: to=<root@xxx.org>, relay=local, delay=0.95, delays=0.25/0.26/0/0.43, dsn=2.0.0, status=sent (forwarded as 54F05C1B4E)
Feb 28 08:56:13 mail postfix/qmgr[1430]: 9E339C0784: removed
Feb 28 08:56:13 mail postfix/smtp[20975]: 7851ABF6A4: to=<xxx@xxx.org>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.5, delays=0.97/0.15/0.37/5, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=18569-10 - INFECTED: )
Feb 28 08:56:13 mail postfix/qmgr[1430]: 7851ABF6A4: removed
Feb 28 08:56:15 mail postfix/pipe[20983]: 54F05C1B4E: to=<www@xxx.org>, relay=dovecot, delay=1.8, delays=0.15/0.09/0/1.6, dsn=2.0.0, status=sent (delivered via dovecot service)
http://www.iredmail.org/forum/topic4636 … pdate.html