 Log Files, Limit # of log files
 Log Files, Limit # of log files2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
|  | 
| XMail Forum · Newbies read here ! All about SMTP,MX-Records,DNS etc. |  Help  Search  Members  Calendar | 
| Welcome Guest ( Log In | Register ) | Resend Validation Email | 
 Log Files, Limit # of log files
 Log Files, Limit # of log files| Don | 
        Posted: Mar 13 2008, 07:19 AM
         | 
| Newbie  Group: Members Posts: 23 Member No.: 2789 Joined: 5-February 08  |  Hi, Is there a way to limit the number of log files? For example limit the # of each log file (pop3, psync, etc) to 7 days. Thanks Don | 
| MaartenJB | 
        Posted: Mar 13 2008, 12:33 PM
         | ||||
| Junior Member   Group: Members Posts: 30 Member No.: 2280 Joined: 5-October 06  |  Hi Don, This is pretty easy. Create a bash script with the following line: 
 and add the bash script to your /etc/crontab, example to add: 
 Ofcourse you need to ajust the path to your needs. | ||||
| Don | 
        Posted: Mar 18 2008, 05:41 AM
         | 
| Newbie  Group: Members Posts: 23 Member No.: 2789 Joined: 5-February 08  |  Thanks, I'll give it a try. Don |