Hi Enrico, I can't speak for why postscript behaviour has changed, but this is a known issue for other applications that hold a file open across time instead of opening it to write / closing it after write. Logrotate allows you to put in a postrotate / endscript sequence that can be used to make the application do whatever is necessary to make it re-open it's log file (or anything else...) Any lines between the line containing 'postrotate' and the line containing 'endscript' will be run after the rotate job has rotated the files. So in between you can stop / start postfix or restart postfix or any other action that can cause it to re-process it's log file.
For example... postrotate service postscript restart endscript someone else might know if postscript will handle kill -HUP (kill -1) correctly (I'm running an older version of postscript that doesn't exhibit this behaviour, it handles the log being switched under it just fine) or you could try it out. ML -----Original Message----- From: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> On Behalf Of Enrico Morelli Sent: 09 August 2019 08:33 To: postfix-users@postfix.org Subject: Postfix log Dear, I upgraded Debian from version 9 to 10 and consequently postfix 3.1.12 to 3.4.5. I'm checking log with multitail in real time and with the new postfix version, I've a strange behavior. When the logs rotate, postfix continues to write in the old file renamed mail.log.1 instead of the new mail.log. I've to restart postfix to solve the problem. I created a postfix file in logrotate.d, as the following, that worked before the update: /var/log/mail.info /var/log/mail.warn /var/log/mail.err /var/log/mail.log { weekly missingok notifempty delaycompress compress create 640 root adm rotate 3650 size 10M } Any suggestion? -- ----------------------------------------------------------- Enrico Morelli System Administrator | Programmer | Web Developer CERM - Polo Scientifico via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY ------------------------------------------------------------