On Sat, May 17, 2025 at 01:44:57PM +0000, Helge Kreutzmann wrote:
In /etc/exim4 three files mention procmail:
exim4-config: /etc/exim4/conf.d/transport/30_exim4-config_procmail_pipe
exim4-config: /etc/exim4/conf.d/router/700_exim4-config_procmail
exim4-config: /etc/exim4/exim4.conf.template
But I never edited them directly, only via Debconf (probably when I
installed the machine.
If you don't use procmail, you should deinstall it. Exim can deliver by
itself.
I have had much fun with sending e-mail from a systemd unit as well, but
that systemd unit is rather verbose and limited. I ended up using a
helper program to deliver mail and not calling /usr/lib/sendmail any
more. See:
https://salsa.debian.org/debian/aide/-/blob/debian/latest/debian/aide-common.dailyaidecheck.service
https://salsa.debian.org/debian/aide/-/blob/debian/latest/debian/aide-common.dailyaidecheck.timer
https://salsa.debian.org/debian/aide/-/blob/debian/latest/debian/bin/dailyaidecheck
That was a pretty stiff amount of work.
My first guess is that the suid bit does not work when /usr/lib/sendmail
is invoked from the systemd unit, and running as logcheck exim can
indeed not do anything.
My second guess is that for some reason Helge's system indeed runs
logcheck's classical cron job AND the new systemd timer, and the systemd
timer version shows the issue in question. I'd go ahead and debug why
logcheck's classical cron job doesn't get disabled on Helge's system.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421