Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35148 - exim does not provide logrotate configuration
Summary: exim does not provide logrotate configuration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal
Assignee: Colin Morey (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-05 12:59 UTC by Philipp Kern
Modified: 2008-09-24 18:07 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My exim lograte.d file (exim,449 bytes, text/plain)
2003-12-10 10:25 UTC, Dennis Freise
Details
logrotate.d file for exim (exim-logrotate,278 bytes, text/plain)
2005-01-27 08:55 UTC, David
Details
patch to exim-4.69-r1.ebuild that add support for logrotate (exim-logrotate-ebuild.patch,1.16 KB, patch)
2008-09-06 18:26 UTC, Marcin Semeniuk
Details | Diff
fixed path to log files (exim.logrotate,277 bytes, text/plain)
2008-09-06 18:30 UTC, Marcin Semeniuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Kern 2003-12-05 12:59:26 UTC
exim really should provide a kind of default logrotate configuration for /etc/logrotate.d

Probably you could change exim's logfiles on the fly and exim wouldn't cry so adding just a little file which adds (main|panic|reject)log to the normal logrotate cycle shouldn't be that hard.
Comment 1 Dennis Freise 2003-12-10 10:25:50 UTC
Created attachment 21980 [details]
My exim lograte.d file

This file is intended for logrotate-3.6.6 SuSE! If you want to use it on a
vanilla logrotate, you have to delete the "MAXAGE" and "DATEEXT" options from
the file. Else, just save as /etc/logrotate.d/exim .
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-18 15:37:37 UTC
handing these over to Jay
Comment 3 Colin Morey (RETIRED) gentoo-dev 2004-04-24 03:33:43 UTC
I've personally used the exicyclog script that comes with exim, and not had much luck with logrotate, I will investigate and add though.
Comment 4 David 2005-01-27 08:54:20 UTC
My logrotate script is attached and works correctly for me on a number of Exim servers.  It is very basic and fits with username/path locations for Gentoo.
Comment 5 David 2005-01-27 08:55:26 UTC
Created attachment 49671 [details]
logrotate.d file for exim
Comment 6 Chris Lear 2005-07-04 01:57:02 UTC
Perhaps an alternative would be to add an exim.cron file into /etc/cron.daily
which just looks like this:

#!/bin/sh
/bin/nice/ /usr/sbin/exicyclog

No dependency on logrotate, and it does the same thing.

This is what I do, and I also have some eximstats running in the same daily cron
job (just before the exicyclog), similar to this:

/usr/sbin/eximstats -t0 -tnl -nt -q0 -h0 /var/log/exim/exim_main.log | mail -s
"Mail info" chris
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-07-18 03:10:23 UTC
Mass re-assign, maintainer to whom this bug was assigned seems inactive. 
Comment 8 Colin Morey (RETIRED) gentoo-dev 2008-05-05 19:54:49 UTC
I'll try and add a suitable crontab file for /etc/cron.d/ with 4.69-r1, although it will be with the exicyclog script, rather than relying on logrotate.d.

I may patch it in with a USE var, and have it provide logrotate.d if need be, but I will have to think on it a bit more.
Comment 9 Marcin Semeniuk 2008-09-06 18:26:31 UTC
Created attachment 164746 [details, diff]
patch to exim-4.69-r1.ebuild that add support for logrotate
Comment 10 Marcin Semeniuk 2008-09-06 18:30:21 UTC
Created attachment 164747 [details]
fixed path to log files

This is almost the same file as David's. Only difference is removed "v" from beginning of path.
Comment 11 Marcin Semeniuk 2008-09-06 18:36:32 UTC
I did it in similar way that squid ebuild do it. cron job can be easily added in "else". 

This was done at Bugday ;)
Comment 12 Colin Morey (RETIRED) gentoo-dev 2008-09-12 18:05:14 UTC
I'm about to disappear for a week, but I'll commit this patch when I return (hopefully the 22nd/23rd september 2008, sorry for any delay.

Cheers,


Colin
Comment 13 Colin Morey (RETIRED) gentoo-dev 2008-09-24 18:07:25 UTC
exim-4.69-r2 is in the tree a day later than expected, but I hit issues with GLEP 56.