Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Starbix opened this issue Mar 31, 2018 · 2 comments · Fixed by #927
Closed

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

Starbix opened this issue Mar 31, 2018 · 2 comments · Fixed by #927

Comments

@Starbix
Copy link
Contributor

Starbix commented Mar 31, 2018

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.
@akmet
Copy link
Contributor

akmet commented Apr 1, 2018

Will have a look at it later, but it should not exists in rsyslog..
removing the /maillog would cause that no mail is sent

@17Halbe
Copy link
Contributor

17Halbe commented Apr 2, 2018

I had the same error once. But I thought the build process had a hickup.
I just confirmed it. It's a bug.
This is the line where the mail.log logrotate setting should get removed:
https://github.com/tomav/docker-mailserver/blob/2e06228b101b4deff794686e3cb997e458eb3d3b/Dockerfile#L201
That's step 43 during the build process.
The sed command should be following the next line. Basically switch line 201 with 202.

17Halbe added a commit to 17Halbe/docker-mailserver-1 that referenced this issue Apr 2, 2018
johansmitsnl added a commit that referenced this issue Apr 23, 2018
Release 6.0.0

* Implementation of multi-domain relay hosts (#922, #926)
  AWS_SES_HOST and AWS_SES_PORT are deprecated now.
  RELAY_HOST and RELAY_PORT are introduced to replace them.
* Password creation fix (#908, #914)
* Fixes 'duplicate log entry for /var/log/mail/mail.log' (#925, #927)
* fixed cleanup (mail_with_relays didn't get cleaned up) (#930)
* fix line breaks in postfix-summary mail error case (#936)
* Set default virus delete time (#932, #935)
  This defaults to 7 days
* Ensure that the account contains a @ (#923, #924)
* Introducing global filters. (#934)
* add missing env vars to docker-compose.yml (#937)
* set postmaster address to a sensible default (#938, #939,  #940)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants