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.
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 .
handing these over to Jay
I've personally used the exicyclog script that comes with exim, and not had much luck with logrotate, I will investigate and add though.
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.
Created attachment 49671 [details] logrotate.d file for exim
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
Mass re-assign, maintainer to whom this bug was assigned seems inactive.
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.
Created attachment 164746 [details, diff] patch to exim-4.69-r1.ebuild that add support for logrotate
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.
I did it in similar way that squid ebuild do it. cron job can be easily added in "else". This was done at Bugday ;)
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
exim-4.69-r2 is in the tree a day later than expected, but I hit issues with GLEP 56.