Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
Nigel Metheringham edited this page Nov 25, 2012 · 2 revisions

FAQ_ / Linux / Q9602


`Navigation(siblings)`_


Q9602

Question

I want to use logrotate which is standard with RH5.2 Linux to rotate my mail logs. Anyone worked out the logrotate config file that will do this?

Answer

Here's one suggestion:

/var/log/exim/main.log {
    create 644 exim exim
    rotate 4
    compress
    delaycompress
}

The sleep is added to allow things to close the log file prior to compression. You also need similar entries for the panic log and the reject log, of course.


`Navigation(siblings)`_


FAQ_ / Linux / Q9602


CategoryFrequentlyAskedQuestions_

Clone this wiki locally