Control Web Panel

WebPanel => Information => Topic started by: justcurious on April 24, 2018, 02:20:28 PM

Title: What is the script that CWP uses to rotate the postfix mail log ?
Post by: justcurious on April 24, 2018, 02:20:28 PM
I note that the Postfix mail log is 'rotated' on an intermittent basis - the file var/log/maillog is renamed to include a date based suffix and a new file var/log/maillog is created, but I want to be able to do this more frequently.

A Google search revealed that
Code: [Select]
# logrotate -f /etc/logrotate.d/syslog will reset the maillog (plus others), but I've found that the maillog is renamed maillog.1 and then deleted.

Does anyone know what script CWP uses to rotate the log ?
Title: Re: What is the script that CWP uses to rotate the postfix mail log ?
Post by: studio4host on April 26, 2018, 08:07:49 AM
it can only default in the logrotate, nothing other exist in cwp.