[Dovecot] how to limit size of dovecot.log
I've done some searching and maybe I'm missing something... I have a remote dovecot and postfix server running on debian 5. I then have a local fetchmail server that retrieves email from the dovecot server via pop3s every 5 minutes.
The problem is that the /var/log/dovecot.log file has grown to be over 1.1GiB over a period of less than 1 year.
Is there a way to limit the size of the dovecot.log file, or do I have to run a monthly cron job or something to take care of it for me?
Thank you, Aaron Johnson
Thursday, April 28, 2011, 7:31:46 PM, Aaron wrote:
I've done some searching and maybe I'm missing something... I have a remote dovecot and postfix server running on debian 5. I then have a local fetchmail server that retrieves email from the dovecot server via pop3s every 5 minutes.
The problem is that the /var/log/dovecot.log file has grown to be over 1.1GiB over a period of less than 1 year.
Is there a way to limit the size of the dovecot.log file, or do I have to run a monthly cron job or something to take care of it for me?
You should be able to set up log rotation within your systems log setup.
By default, Dovecot should log to syslog using the mail facility which should be getting rotated already.
http://wiki.dovecot.org/Logging
-- Duane
On Qui, 28 Abr 2011, Aaron C Johnson wrote:
I've done some searching and maybe I'm missing something... I have a
remote dovecot and postfix server running on debian 5. I then have a
local fetchmail server that retrieves email from the dovecot server
via pop3s every 5 minutes.The problem is that the /var/log/dovecot.log file has grown to be
over 1.1GiB over a period of less than 1 year.Is there a way to limit the size of the dovecot.log file, or do I
have to run a monthly cron job or something to take care of it for me?
On Debian that should happen automatically, via the logrotate package.
Probably installing it is enough.
-- For external use only.
Eduardo M KALINOWSKI eduardo@kalinowski.com.br
participants (3)
-
Aaron C Johnson
-
Duane Hill
-
Eduardo M KALINOWSKI