1 (edited by JerryAllen 2010-02-03 12:55:47)

Topic: Dovecot Logrotate 'bug'

Not sure I had changed the orignal setup or not but the stock logrotate dovecot kill -HUP syslog does nothing since logs from dovecot were separated to dovecot.log which is created by dovecot not by syslog. I may have done this for debug clarity on my part, just a hint here.

Jerry

2

Re: Dovecot Logrotate 'bug'

What's your linux distribution? RHEL/CENTOS or Debian/Ubuntu or FreeBSD?
Could you please post the whole logrotate file so that we can verify it?

3 (edited by JerryAllen 2010-02-03 13:41:21)

Re: Dovecot Logrotate 'bug'

ZhangHuangbin wrote:

What's your linux distribution? RHEL/CENTOS or Debian/Ubuntu or FreeBSD?
Could you please post the whole logrotate file so that we can verify it?

Old Was the original from the  iRedmail iRedOS-0.5.0-CentOS-5.3.i386.iso, I did not back it up before I changed it, it was broken anyway. I always ended up with a 0 byte log file after rotate that never updated and that is expected if dovecot is logging to a file and the file is rotated but dovecot is not restarted. The result was my somewhat crude pop before smtp failing.

Jerry

New rotate script is
#
# File generated by iRedMail (2009.12.22.10.55.05):
#
# Version:  0.5.0
# Project:  http://code.google.com/p/iredmail/
#
# If you deploy iRedMail in product environment, we suggest
# you public your information in 'Success Stories' forum to help us
# promote iRedMail.
#
# Forum: http://www.iredmail.org/forum/
#

/var/log/dovecot.log {
    compress
    daily
    rotate 30
    create 0600 vmail vmail
    missingok

    # Use bzip2 for compress.
    compresscmd /usr/bin/bzip2
    uncompresscmd /usr/bin/bunzip2
    compressoptions -9
    compressext .bz2

    postrotate
        /etc/init.d/dovecot restart
    endscript