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:
- 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).
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) d/clamav- milter clamav- milter. conf like this:
- remove /etc/logrotate.
- edit /etc/clamav/
LogSyslog false clamav/ clamav- milter. log
LogFile /var/log/
- sudo apt-get install clamav-milter (the logrotate. d/clamav- milter file gets generated correctly) clamav/ clamav- milter. log exists d/clamav- milter' , should work without errors, and you should see the clamav-milter.log file rotated
- check the /var/log/
- run 'sudo /usr/sbin/logrotate /etc/logrotate.
It still gives an error about clamav-milter reload-log, not sure what should be there (I see only restart).