Include logrotate configuration

Bug #309816 reported by Ryan Lovett
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dovecot (Ubuntu)
Expired
Wishlist
Unassigned

Bug Description

The dovecot package does not include a logrotate configuration. If dovecot is configured to log to file rather than syslog its log file will become unmanageable. There is a recommended configuration here:

http://wiki.dovecot.org/Logging

# dovecot SIGUSR1: Re-opens the log files.
/var/log/dovecot*.log {
  missingok
  notifempty
  delaycompress
  sharedscripts
  postrotate
    /bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2> /dev/null || true
  endscript
}

This configuration will not interfere if dovecot is configured to use syslog.

Revision history for this message
Michael Zoet (michazoet-deactivatedaccount) wrote :

I think this should be a whishlist feature request. Maybe contacting the package manager/mantainer?

Changed in dovecot:
status: New → Confirmed
Chuck Short (zulcss)
Changed in dovecot (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Bryce Harrington (bryce) wrote :

It looks like dovecot still does not establish logrotation on installation, however its worth note that journalctl is the designated way to do log management these days. I would guess that after 12 years, people needing this behavior are either using journalctl instead, or have set up logrotation manually (it seems to be pretty well documented upstream), but before closing this I'll ask if anyone can make a case that it would still be worth implementing in the Ubuntu package?

Changed in dovecot (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote :

I don't use dovecot anymore and agree with @bryce. Its fine with me if you want to close this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for dovecot (Ubuntu) because there has been no activity for 60 days.]

Changed in dovecot (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.