1

Topic: amavis virus scan broken new install

I see this in the log for every email the server receives
Jul  5 15:21:59 transit-gw amavis[24769]: (24769-01) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/spool/amavisd/tmp/amavis-20140705T152159-24769/parts: lstat() failed: Permission denied. ERROR\n"
Jul  5 15:21:59 transit-gw amavis[24769]: (24769-01) (!)ClamAV-clamd av-scanner FAILED: CODE(0x3e3f5b8) unexpected , output="/var/spool/amavisd/tmp/amavis-20140705T152159-24769/parts: lstat() failed: Permission denied. ERROR\n" at (eval 103) line 596.
Jul  5 15:21:59 transit-gw amavis[24769]: (24769-01) (!!)WARN: all primary virus scanners failed, considering backups

I have made the folders 755 and added clam to the group amavis and clamav

==== Required information ====
- iRedMail version:  0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): ldap
- Linux/BSD distribution name and version: centos 6.5
- Related log if you're reporting an issue:
====

----

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

2

Re: amavis virus scan broken new install

What's the permission of folder /var/spool/amavisd/tmp? Did you try 755?

# chmod 755 /var/spool/amavisd/tmp

Reference: http://www.iredmail.org/forum/topic4636 … pdate.html

3

Re: amavis virus scan broken new install

yes, done that. here is the listing

it looks like the dir created in tmp are not 755

[root@transit-gw conf.d]# cd /var/spool/amavisd/
[root@transit-gw amavisd]# ls -al
total 28
drwxr-xr-x.  7 amavis amavis 4096 Jul  6 05:52 .
drwxr-xr-x. 15 root   root   4096 Jul  4 22:52 ..
srwxr-x---   1 amavis amavis    0 Jul  6 05:52 amavisd.sock
drwx------.  2 amavis amavis 4096 Jul  6 05:52 db
drwxr-x---.  2 amavis amavis 4096 Jul  6 05:01 quarantine
drwxr-x---   2 amavis amavis 4096 Jul  6 03:48 .razor
drwx------   2 amavis amavis 4096 Jun 30 22:01 .spamassassin
drwxr-xr-x. 10 amavis amavis 4096 Jul  6 09:32 tmp
[root@transit-gw amavisd]# ls -al tmp
total 40
drwxr-xr-x. 10 amavis amavis 4096 Jul  6 09:32 .
drwxr-xr-x.  7 amavis amavis 4096 Jul  6 05:52 ..
drwxr-x---   3 amavis amavis 4096 Jul  6 06:03 amavis-20140706T060338-08065
drwxr-x---   3 amavis amavis 4096 Jul  6 06:13 amavis-20140706T061303-08067
drwxr-x---   3 amavis amavis 4096 Jul  6 06:54 amavis-20140706T065413-08066
drwxr-x---   3 amavis amavis 4096 Jul  6 07:17 amavis-20140706T071700-08068
drwxr-x---   3 amavis amavis 4096 Jul  6 07:20 amavis-20140706T072027-08069
drwxr-x---   3 amavis amavis 4096 Jul  6 07:22 amavis-20140706T072221-08071
drwxr-x---   3 amavis amavis 4096 Jul  6 07:42 amavis-20140706T074211-08073
drwxr-x---   3 amavis amavis 4096 Jul  6 07:45 amavis-20140706T074503-08070

4

Re: amavis virus scan broken new install

Did you restart Amavisd and ClamAV services?

5

Re: amavis virus scan broken new install

yes, both
service amavisd restart OK
service clamd restart OK

still get the same error.
I have also made those 2 dir a 777 but the dir created in tmp is a 750

drwxr-x---  3 amavis amavis 4096 Jul  7 08:29 amavis-20140707T082944-09768

6

Re: amavis virus scan broken new install

No idea yet. 755 on /var/spool/amavisd/tmp should be fine, and 750 on files under it should be fine too.