On Sun, 18 May 2025, 17:22 Helge Kreutzmann, <[email protected]> wrote:
> Hello Richard, > Am Sun, May 18, 2025 at 02:40:04PM +0100 schrieb Richard Lewis: > > On Sun, 18 May 2025, 14:28 Richard Lewis, < > > [email protected]> wrote: > > > On Sun, 18 May 2025, 14:14 Helge Kreutzmann, <[email protected]> > wrote: > > >> Am Sun, May 18, 2025 at 01:18:57PM +0100 schrieb Richard Lewis: > > >> > On Sun, 18 May 2025, 12:37 Helge Kreutzmann, <[email protected]> > > >> wrote: > > > so you've now got > > > > > > - cron is running logcheck > > > - systemd is also running logcheck > > > > > > only one of them sends an email > > > no other errors > > > no other messages in the mailq? > > > > > > > > > i can only guess that the email comes from cron, and system's email is > now > > > being silently lost. > > > > > > can you check this -- if you add a -R to the cron.d line so it is > > > > > > ... nice -n10 /usr/sbin/logcheck -R; .... > > > > > > then any emails from cron will have "Reboot" in the subject, and any > email > > > from systemd will not, that would be helpful. > > > > > > (youll presumably now only get a logcheck email if there is something > in > > > the log to report, i usually do "logger test" to make sure that > happens) > > > > > > > stuud me -- you wont get 2 emails because whoever runs second may not > find > > any new messages to report. and in fact if both cron and systemd are > > running at the same time onenof them should fail as it cant take the > lock. > > so you cant ever get duplicate reports from having cron and systemd > > running, so that was never the cause. > > Yes, now the subject is Reboot: > > I dont't get any e-mails without the Reboot form this logcheck > anymore. > > So this would mean (only) cron is running, correct? > yes, i think so. it would help to check that if you comment out the cron line nothing different happens, ie you would then get no mails at all? this does seem to be quite convincing evidence that the systemd timer is really losing mail. but the reason is not clear, at least to me.. how can i reproduce your exim setup?

