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 ------------------------------------------------------------