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