[Pkg-clamav-devel] Bug#518628: clamav-milter: log rotation is broken/missing
Robert McQueen
robot101 at debian.org
Sat Mar 7 15:04:40 UTC 2009
Package: clamav-milter
Version: 0.94.dfsg.2-1~volatile1
Severity: normal
I've only got the clamav-milter package installed, and not
clamav-daemon, and I noticed today when configuring munin that my
/var/log/clamav/clamav.log file is written to by clamav-milter, but is
not being logrotated. I made a file like this:
root at sigma:~# cat /etc/logrotate.d/clamav-milter
/var/log/clamav/clamav.log {
rotate 12
weekly
compress
delaycompress
create 640 clamav adm
postrotate
pkill -USR1 -o clamav-milter
endscript
}
This seemed to work on my system, but I guess this really means
logrotate file should be in the clamav-base package with the missingok
keyword in case neither the daemon nor the milter are installed.
Regards,
Rob
-- Package-specific info:
--- configuration ---
#Automatically Generated by clamav-base postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-base
#Please read /usr/share/doc/clamav-base/README.Debian.gz for details
LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket true
TemporaryDirectory /tmp
User clamav
AllowSupplementaryGroups true
ScanMail true
ScanArchive true
ArchiveLimitMemoryUsage false
ArchiveBlockEncrypted false
MaxDirectoryRecursion 15
FollowDirectorySymlinks false
FollowFileSymlinks false
ReadTimeout 180
MaxThreads 12
MaxConnectionQueueLength 15
StreamMaxLength 10M
LogSyslog false
LogFacility LOG_LOCAL6
LogClean false
LogVerbose false
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/lib/clamav
SelfCheck 3600
Foreground false
Debug false
ScanPE true
ScanOLE2 true
ScanHTML true
DetectBrokenExecutables false
MailFollowURLs false
ExitOnOOM false
LeaveTemporaryFiles false
AlgorithmicDetection true
ScanELF true
IdleTimeout 30
PhishingSignatures true
PhishingScanURLs true
PhishingAlwaysBlockSSLMismatch false
PhishingAlwaysBlockCloak false
DetectPUA false
ScanPartialMessages false
HeuristicScanPrecedence false
StructuredDataDetection false
LogFile /var/log/clamav/clamav.log
LogTime true
LogFileUnlock false
LogFileMaxSize 0
# Automatically created by the clamav-freshclam postinst
# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogTime false
Foreground false
Debug false
MaxAttempts 5
DatabaseDirectory /var/lib/clamav/
DNSDatabaseInfo current.cvd.clamav.net
AllowSupplementaryGroups false
PidFile /var/run/clamav/freshclam.pid
ConnectTimeout 30
ReceiveTimeout 30
ScriptedUpdates yes
CompressLocalDatabase no
# Check for new database 12 times a day
Checks 12
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
DatabaseMirror db.uk.clamav.net
--- data dir ---
total 44328
-rw-r--r-- 1 clamav clamav 990208 2009-03-06 20:40 daily.cld
drwxr-xr-x 2 clamav clamav 4096 2008-06-04 23:17 daily.inc
-rw-r--r-- 1 clamav clamav 44391424 2009-02-16 00:11 main.cld
drwxr-xr-x 2 clamav clamav 124 2008-06-04 23:17 main.inc
-rw------- 1 clamav clamav 572 2009-03-07 14:40 mirrors.dat
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages clamav-milter depends on:
ii clamav-base 0.94.dfsg.2-1~volatile1 anti-virus utility for Unix - base
ii clamav-freshclam 0.94.dfsg.2-1~volatile1 anti-virus utility for Unix - viru
ii libbz2-1.0 1.0.3-6 high-quality block-sorting file co
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libclamav5 0.94.dfsg.2-1~volatile1 anti-virus utility for Unix - libr
ii libgmp3c2 2:4.2.1+dfsg-4 Multiprecision arithmetic library
ii libmilter0 8.13.8-3 Sendmail Mail Filter API (Milter)
ii libwrap0 7.6.dbs-13 Wietse Venema's TCP wrappers libra
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
ii zlib1g 1:1.2.3-13 compression library - runtime
Versions of packages clamav-milter recommends:
pn clamav-daemon <none> (no description available)
-- no debconf information
More information about the Pkg-clamav-devel
mailing list