1

Topic: Hotfix for 0.6.0: Duplicate log entry for /var/log/mail.log

This post is used to fix duplicate log entry for /var/log/mail.log iRedMail-0.6.0. if it doesn't work for you, please post a new topic in iRedMail General Technical Support forum.
=================

Abstract

There's a error message when you use logrotate to rotate log file /var/log/mail.log:

/etc/cron.daily/logrotate:
error: syslog-ng:65 duplicate log entry for /var/log/mail.log
run-parts: /etc/cron.daily/logrotate exited with return code 1

We'd like to thank fbartels for his report.

Affected versions
  • iRedMail-0.6.0, Debian 5 only

Steps to fix it

Simply remove string /var/log/mail.log in /etc/logrotate/rsyslog or remove file /etc/logrotate/maillog fixes this issue.