Comment 1 for bug 363804

Revision history for this message
Imre Gergely (cemc) wrote :

It seems that the default clamav-milter.conf has syslog enabled instead of a file, and the postinst script doesn't find the LogFile setting and thus the logfile name, so it puts 'none' in /etc/logrotate.d/clamav-milter. Steps to correct:

- uninstall clamav-milter (without purge)
- remove /etc/logrotate.d/clamav-milter
- edit /etc/clamav/clamav-milter.conf like this:

LogSyslog false
LogFile /var/log/clamav/clamav-milter.log

- sudo apt-get install clamav-milter (the logrotate.d/clamav-milter file gets generated correctly)
- check the /var/log/clamav/clamav-milter.log exists
- run 'sudo /usr/sbin/logrotate /etc/logrotate.d/clamav-milter', should work without errors, and you should see the clamav-milter.log file rotated

It still gives an error about clamav-milter reload-log, not sure what should be there (I see only restart).