On Thu, 26 Sep 2024, Marco Gaiarin via Exim-users wrote:

Mandi! Ian Z via Exim-users
 In chel di` si favelave...

More information needed:
- what style of logfile naming is in use (just sequence numbers, or
  dates, or something else?)

?! Sorry but i've not understood the question...


- please share the logrotate.d entry for exim

Standard debian one:

root@mail:~# cat /etc/logrotate.d/exim4-base
/var/log/exim4/mainlog /var/log/exim4/rejectlog {
        daily
        missingok
        rotate 10
        compress
        delaycompress
        notifempty
        nocreate
}

Ubuntu has a separate file /etc/logrotate.d/exim4-paniclog
which says:

/var/log/exim4/paniclog {
        size 10M
        missingok
        rotate 10
        compress
        delaycompress
        notifempty
        nocreate
}

I have completely rewritten mine to:

/var/log/exim4/paniclog {
     # keep for a long time, but don't let them be world-readable!
     daily
     dateext
     rotate 600
     create 0640 Debian-exim Debian-exim
     sharedscripts
}

The "sharedscripts" entry may be significant -
I have also added it to my /etc/logrotate.d/exim4-base
However there are no exim postrotate scripts, so it may
not matter.

I don't see the point in compressing a file which should be empty
(it gets bigger *and* harder to read).
I rotate daily so that new panics can be told instantly from old ones
(and maybe to be consistent with the other exim logs).


To exclude any systemd issues, you can:

OK, but i've not 'logrotate' issue; logrotate seems to do the correct
things; simply seldom i catch errors as in my original post, and i receive
two report.

We are suspicious that this *is* a *subtle* logrotate issue.

--
Andrew C. Aitchison                      Kendal, UK
                   and...@aitchison.me.uk

--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to