Fourhundred Thecat: > Hello, > > I am using Postfix on Debian. I have noticed that my mail logs are not > being rotated. > > I see that there is no rule in my /etc/logrotate.d/ for rotating mail logs. > > Which program's responsibility is it?
If the log is written by (r)syslogd, you must use the tool that rotates (r)syslogd logs. This ensures that (r)syslogd stops writing to a file before it is compressed. The name of the program is distribution dependent. If the log is written by Postfix you must use "postfix logrotate". This ensures that Postfix stops writing to a file before it is compressed. Wietse