Question
Is it possible to change rotation settings for /var/log/maillog?
Answer
It is not possible to manage rotation settings for /var/log/maillog. By design, /var/log/maillog is rotated every day during Plesk Daily Maintenance task.
As an alternative, /var/log/maillog.proccessed rotation settings may be changed instead. After Daily Maintenance Task is executed, all log data is moved from /var/log/maillogto /var/log/maillog.proccessed.
To modify /var/log/maillog.proccessed rotation settings, perform the following steps:Log in to the server via SSH. Edit the settings in the /usr/local/psa/etc/logrotate.conf file: /var/log/maillog.processed { weekly missingok rotate 3 compress nocreate }
Note: Use one of the following words to set the rotation frequency: hourly, daily, weekly, monthly, yearly.