On Wed, 28 Mar 2018 11:13:04 +0200 L.P.H. van Belle <be...@bazuin.nl> wrote:
> You did not get the hint.. The "wrong" thing here is mail.* > Because your rotating now everything behind the mail.* > so also .1 .1.1 .1.1.1 etc etc, until you server explodes ;-) > > You should have this in you postfix logrotate.. > Try this. > > /var/log/mail.info /var/log/mail.warn /var/log/mail.err /var/log/mail.log > { monthly > missingok > notifempty > delaycompress > compress > create 640 root adm > rotate 3650 > size 10M > } > > Greetz, Great!! You are ready, Thanks you. > > Louis > > > -----Oorspronkelijk bericht----- > > Van: more...@cerm.unifi.it > > [mailto:owner-postfix-us...@postfix.org] Namens Enrico Morelli > > Verzonden: woensdag 28 maart 2018 10:54 > > Aan: postfix-users@postfix.org > > Onderwerp: Re: Postfix & logrotate > > > > On Wed, 28 Mar 2018 10:24:49 +0200 > > L.P.H. van Belle <be...@bazuin.nl> wrote: > > > > > Hai, > > > > > > Did you remove the mail rotate also from > > /etc/logrotate.d/rsyslog ? > > > > > > You have these lines in the rsyslog file also. > > > /var/log/mail.info > > > /var/log/mail.warn > > > /var/log/mail.err > > > /var/log/mail.log > > > > > > Your now "double" rotateing your logs. ;-) > > > > > > > > > Greetz, > > > > > > > I removed the mail.* from rsyslog before creating the postfix file. > > > > > > > louis > > > > > > > > > > > > > -----Oorspronkelijk bericht----- > > > > Van: more...@cerm.unifi.it > > > > [mailto:owner-postfix-us...@postfix.org] Namens Enrico Morelli > > > > Verzonden: woensdag 28 maart 2018 10:19 > > > > Aan: postfix-us...@cloud9.net > > > > Onderwerp: Postfix & logrotate > > > > > > > > This problem is not strictly related to Postfix, but I'm > > going crazy > > > > trying to solve it. I've a postfix mail server on Debian 9. I > > > > want maintain the mail log, so I create a posfix file in > > /etc/logrotate.d > > > > with the following content (this is the latest attempt to find a > > > > solution): > > > > > > > > /var/log/mail.* { > > > > monthly > > > > missingok > > > > notifempty > > > > delaycompress > > > > compress > > > > rotate 3650 > > > > size 10M > > > > } > > > > > > > > Every day I find a lot of empty mail log like the following: > > > > -rw-r--r-- 1 root adm 0 Mar 28 06:25 mail.log.1 > > > > -rw-r--r-- 1 root adm 11150441 Mar 28 06:25 mail.log.1.1 > > > > -rw-r--r-- 1 root adm 0 Mar 28 06:25 mail.log.1.1.1 > > > > -rw-r--r-- 1 root adm 13200643 Mar 25 06:25 > > > > mail.log.1.1.1.1 -rw-r--r-- 1 root adm 0 Mar 28 > > > > 06:25 mail.log.1.1.1.1.1.1 -rw-r--r-- 1 root adm 14921041 > > > > Mar 23 06:25 mail.log.1.1.1.1.1.1.1 > > > > -rw-r--r-- 1 root adm 0 Mar 28 06:25 > > > > mail.log.1.1.1.1.1.1.1.1 > > > > > > > > After the weekend the logs seems a tree. Someone can help me to > > > > solve the problem? > > > > > > > > Thanks > > > > > > > > > > > > -- > > > > ----------------------------------------------------------- > > > > Enrico Morelli > > > > System Administrator | Programmer | Web Developer > > > > > > > > CERM - Polo Scientifico > > > > via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY > > > > ------------------------------------------------------------ > > > > > > > > > > > > > > > > > > > -- > > ----------------------------------------------------------- > > Enrico Morelli > > System Administrator | Programmer | Web Developer > > > > CERM - Polo Scientifico > > via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY > > ------------------------------------------------------------ > > > > > -- ----------------------------------------------------------- Enrico Morelli System Administrator | Programmer | Web Developer CERM - Polo Scientifico via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY ------------------------------------------------------------