Re: Minor logrotate bug (was Re: logrotate script for Postfix)

2020-05-14 Thread Wietse Venema
Larry Stone: > I posted the note below Saturday but having seen no acknowledgement from > Wietse, wanted to make sure it wasn?t overlooked although it?s very minor. > > To summarize what?s below, the default value of maillog_file_rotate_suffix is > %Y%M%d-%H%M%S which puts minutes where you expe

Minor logrotate bug (was Re: logrotate script for Postfix)

2020-05-14 Thread Larry Stone
I posted the note below Saturday but having seen no acknowledgement from Wietse, wanted to make sure it wasn’t overlooked although it’s very minor. To summarize what’s below, the default value of maillog_file_rotate_suffix is %Y%M%d-%H%M%S which puts minutes where you expect month. It should be

Re: logrotate script for Postfix

2020-05-11 Thread sashk
%M - minute%m - month. you have a typo, should be: maillog_file_rotate_suffix = %Y%m%d-%H%M%S 09.05.2020, 11:32, "Larry Stone" : On May 9, 2020, at 9:45 AM, Wietse Venema wrote: If the log is written by Postfix you must use "postfix logrotate". This ensures that Postfix stops

Re: logrotate script for Postfix

2020-05-09 Thread Larry Stone
> > On May 9, 2020, at 9:45 AM, Wietse Venema wrote: > > > 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 I hate to even suggest I found a bug with Postfix, but I think I found

Re: logrotate script for Postfix

2020-05-09 Thread Wietse Venema
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 th

Re: logrotate script for Postfix

2020-05-09 Thread Nick
On 2020-05-09 15:28 BST, Fourhundred Thecat wrote: > 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? In my debian 10 machines, it's co

logrotate script for Postfix

2020-05-09 Thread 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? Is it supposed to come with Postfix, or is this the responsibility of the operating sys