Bug 201046

Summary: Clamd scanning broken in default configuration
Product: [Fedora] Fedora Reporter: Johan Kok <johan-fedora>
Component: amavisd-newAssignee: Steven Pritchard <steve>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4.2-2.fc5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-02 16:37:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Johan Kok 2006-08-02 14:39:00 UTC
Description of problem:
Since the update from 2.4.1 to 2.4.2 the default scanning with clamd is broken
in the default configuration. The default amavisd.conf file contains a link to
the clamd socket in the wrong directory.

/etc/sysconfig/clamd.amavisd contains:
CLAMD_SOCKET=/var/spool/amavisd/clamd.sock

/etc/clamd.d/amavisd.conf contains:
LocalSocket /var/spool/amavisd/clamd.sock

/etc/amavisd.conf contains:
['ClamAV-clamd',
  \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"],
  qr/\bOK$/, qr/\bFOUND$/,
  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],


Version-Release number of selected component (if applicable):
amavisd-new-2.4.2-1.fc5

How reproducible:
New installations of the new 2.4.2 version of this package. The location of the
 clamd socket in amavisd.conf 2.4.1 package is correct.  

Steps to Reproduce:
1. yum update :)
  
Actual results:
Aug  2 16:30:08 server postfix/smtp[24759]: 2AB1ED6888: to=<x>,
relay=127.0.0.1[127.0.0.1], delay=7, status=deferred (host 127.0.0.1[127.0.0.1]
said: 451 4.5.0 Error in processing, id=24798-01, virus_scan FAILED: virus_scan:
ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: Too many retries to
talk to /var/run/clamav/clamd (Can't connect to UNIX socket
/var/run/clamav/clamd: No such file or directory) at (eval 43) line 268. (in
reply to end of DATA command))


Expected results:


Additional info:

Comment 1 Steven Pritchard 2006-08-02 16:30:13 UTC
Good catch.  I had to recreate the conf patch because of changes in the stock 
config, and I missed that.

I'll push an update ASAP.

Comment 2 Steven Pritchard 2006-08-02 16:37:54 UTC
Fixed version is in the build system now.