Bug 442169

Summary: clamav-milter ignores log file size limit in config file
Product: [Fedora] Fedora EPEL Reporter: John Guthrie <mathguthrie>
Component: clamavAssignee: Steven Pritchard <steve>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: el5CC: mastahnke, nb
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: ActualBug
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-07 22:02:43 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 John Guthrie 2008-04-12 11:10:12 UTC
Description of problem:
I have clamav-milter set up with a log file size limit of 30M.  Yet when the
file reaches a size of 20480000 (20000k), clamav-milter refuses to start.  I was
able to work around the issue by removing the clamav log file altogether.  At
that point clamav-milter started working again just fine, and is currently
writing to the log file correctly.

Version-Release number of selected component (if applicable):
0.92.1-1.el4

How reproducible:
Uncertain.

Steps to Reproduce:
1.Set LogFileMaxSize to 30M in the config file.
1a.Optionally, turn on debugging to make the log file grow faster.
2.Watch the log file grow in size to 20480000 bytes.
3.Watch clamav-milter die.
4.Try to restart clamav-milter.
5.Watch clamav-milter not start.
  
Actual results:
clamav-milter tries to start according to log entries from /var/log/maillog, but
it doesn't even create a socket.

Expected results:
A running clamav-milter complete with socket.

Additional info:

Comment 1 Nick Bebout 2011-03-05 02:03:23 UTC
Please try the new package that is in epel-testing.  It's based off of a new spec and is upgraded to 0.97.

Comment 2 Nick Bebout 2011-03-05 02:07:46 UTC
Correction, it's not in epel-testing yet, it's at http://kojipkgs.fedoraproject.org/packages/clamav/0.97/3.el5/

FYI this is not compatible with amavisd-new yet.

You will also need to use the freshclam.conf.rpmnew and clamd.conf.rpmnew or else change the paths in your existing configs.

Comment 3 Nick Bebout 2011-04-07 22:02:43 UTC
They should be pushed to stable, or will be soon.  Please reopen if bug still exists.