Context
I get a daily email that says that there's a duplicate entry.
I think this happens because there's /var/log/mail/mail.log in both /etc/logrotate.d/maillog and /etc/logrotate.d/rsyslog
Expected Behavior
No error mails.
Actual Behavior
I get a daily mail with the following content:
/etc/cron.daily/logrotate:
error: rsyslog:13 duplicate log entry for /var/log/mail/mail.log
Possible Fix
Removing either /etc/logrotate.d/maillog or the mail.log entry in /etc/logrotate.d/rsyslog
Steps to Reproduce
- Happens automatically
Your Environment
- Amount of RAM available: 72 GB
- Mailserver version used: latest (as of 31.3.18)
- Docker version used:
Client:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:13:43 2018
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.1-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:20:43 2018
OS/Arch: linux/amd64
Experimental: false
- Environment settings relevant to the config: All mails to unknown accounts get redirected to the admin.
Context
I get a daily email that says that there's a duplicate entry.
I think this happens because there's
/var/log/mail/mail.login both/etc/logrotate.d/maillogand/etc/logrotate.d/rsyslogExpected Behavior
No error mails.
Actual Behavior
I get a daily mail with the following content:
Possible Fix
Removing either
/etc/logrotate.d/maillogor themail.logentry in/etc/logrotate.d/rsyslogSteps to Reproduce
Your Environment