From: Chris <cpo...@em...> - 2016-08-09 00:49:43
|
I have this line in my .fetchmailrc: preconnect "/usr/sbin/logrotate -s /home/chris/.logrotate.status /home/chris/.logrotate.conf" It just calls logrotate which uses the logrotate.conf file in /home to compress the fetchmail log and procmail log on a monthly basis. I keep getting this error when starting fetchmail: fetchmail --nokeep --nosyslog --logfile /home/chris/fetchmaillog --uidl -m procmail fetchmail:/home/chris/.fetchmailrc:10: syntax error at preconnect Here's the logrotate.conf file I'm using: # Global options # Old versions of log files are compressed with gzip by default. compress # Log files are rotated the first time logrotate is run in a month monthly # Log files are rotated 12 times before being removed (just keep one year of history) rotate=12 # Archive old versions of log files adding a daily extension like YYYYMMDD instead of simply adding a number. dateext # If the log file is missing, go on to the next one without issuing an error message. missingok # Log files to rotate /home/chris/fetchmaillog { } /home/chris/procmaillog { } I'm sure it's something I'm easily overlooking but can't figure it out. Version info - release 6.3.26+GSS+NTLM+SDPS+SSL-SSLv3+NLS+KRB5. Chris -- Chris KeyID 0xE372A7DA98E6705C 31.11972; -97.90167 (Elev. 1092 ft) 19:42:05 up 33 min, 1 user, load average: 0.48, 0.32, 0.40 Ubuntu 16.04.1 LTS, kernel 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 |