Skip to content

Daily error mail: duplicate log entry for /var/log/mail/mail.log  #925

@Starbix

Description

@Starbix

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

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions