exicyclog(8) - Linux man page
Name
exicyclog - Cycle exim's logfilesSynopsis
eximcyclogDescription
Each time exicyclog is run the file names get oqshuffled downcq by one. If the main log file name is mainlog (the default) then when exicyclog is run mainlog becomes mainlog.01, the previous mainlog.01 becomes mainlog.02 and so on, up to a limit which is set in the script, and which defaults to 10. Reject logs are handled similarly.
If no mainlog file exists, the script does nothing. Files that oqdrop offcq the end are deleted. All files with numbers greater than 01 are compressed, using a compression command which is configured by the COMPRESS_COMMAND setting in Local/Makefile. It is usual to run lqexicyclogrq
daily from a root lqcrontabrq entry of the form
1 0 * * * su exim -c /usr/exim/bin/exicyclog
assuming you have used the name oqeximcq for the Exim user. You can run exicyclog as root if you wish, but there is no need.