Thomas Lotterer wrote:
On Sun, Jan 16, 2005, Ralf S. Engelschall wrote:


On Sun, Jan 16, 2005, F. Even wrote:


Ralf S. Engelschall wrote:

On Sat, Jan 15, 2005, F. Even wrote:

Just add to your <prefix>/etc/rc.conf:

postfix_log_numfiles="20"
postfix_log_minsize=""


As already pointed out the postfix_log_minsize must not be empty because the calling program line unconditionally adds an option with expects this mandatory parameter.

Set it to a very high number to effictevely disable the log rotation, e.g.

Ah, ok, my fault. I should know that an empty argument is expanded away
by the shell here. Well, then just use postfix_log_minsize="999G" and
you should be fine.



Set it to zero to rotate every day no matter how small the log file is
(even empty), e.g. postfix_log_minsize="0"

I would have thought that way also, but oddly enough, it is rotating the logfiles using the settings Ralf suggested:


[EMAIL PROTECTED]:/cw/var/postfix/log] grep postfix /cw/etc/rc.conf
#-- postfix logging modifications --#
postfix_log_numfiles="20"
postfix_log_minsize="999G"
#-- postfix logging modifications --#
[EMAIL PROTECTED]:/cw/var/postfix/log] ls -l
total 1250
-rw-r--r--  1 openpkg  openpkg    99695 Jan 18 02:45 postfix.log
-rw-r--r--  1 openpkg  openpkg  1024549 Jan 18 00:18 postfix.log.0
-rw-r--r--  1 openpkg  openpkg    94872 Jan 18 00:00 postfix.log.1.bz2
-rw-r--r--  1 openpkg  openpkg    16027 Jan 18 00:00 postfix.sum
-rw-r--r--  1 openpkg  openpkg     4066 Jan 18 00:00 postfix.sum.0.bz2
-rw-r--r--  1 openpkg  openpkg     3999 Jan 17 00:00 postfix.sum.1.bz2
-rw-r--r--  1 openpkg  openpkg     2870 Jan 16 00:00 postfix.sum.2.bz2
-rw-r--r--  1 openpkg  openpkg     1116 Jan 15 00:00 postfix.sum.3.bz2

Anyway....I'm happy that the logs are being rotated as I would like, so thanks for all your help.

Frank
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [email protected]

Reply via email to