Hello, my usr partition is running out of space dua some mailman logs (/usr/local/cpanel/3rdparty/mailman/logs/smtp-failure).
How can rotate/limit those logs with cpanel?
Thank you!.
Hello, my usr partition is running out of space dua some mailman logs (/usr/local/cpanel/3rdparty/mailman/logs/smtp-failure).
How can rotate/limit those logs with cpanel?
Thank you!.
Jack
HostManiaWeb.com
You can add the following lines in the /etc/logrotate.conf file:
/usr/local/cpanel/3rdparty/mailman/logs/smtp-failure {
weekly
rotate 1
}
In this way the log in the question will be rotated once a week.
You can run the following command in your server's command prompt in order to get familiar with the logrotate functionality:
man logrotate
We know cPanel because our web hosting customers love it!
Check out our special cPanel hosting package!