Applicable to:
- Plesk for Linux
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/maillog
to /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:CONFIG_TEXT: /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
.
Comments
2 comments
Will this change to /usr/local/psa/etc/logrotate.conf stay after update? Or possible be overriden?
Is it possible to change the file mode of /var/log/maillog then?
Would it stay if changed manually? I have some processes that are unable to append to it because of its 700 rights..
Please sign in to leave a comment.