Bug#1089172: need for open-minded help with popularity-contest with systemd timer

Andreas Metzler <[email protected]> Sun, 26 Jul 2026 11:29:00 +0200
Newsgroups gmane.linux.debian.devel.bugs.general,gmane.linux.debian.devel.general
Message-ID <[email protected]>
On 2026-07-25 Simon Richter <[email protected]> wrote:
> Hi,

> On 7/25/26 21:14, Richard Lewis wrote:

> > - the timer should start a service that runs new-script, and then does a "sleep 10" to ensure exim can deliver the email before
> >    systemd kills the unit (see #1106030)
> >    (better workarounds welcomed)

> Can we create a systemd service that sends a mail, and has its own lifetime
> and permissions?


Hello,

afaiui the important thing when interacting with a local exim is to
*not* submit mail from a systemd service via the /usr/sbin/sendmail
interface. This avoids having the exim and the respective service in the
same cgroup. Submitting by smtp should work avoid this.

(I do not think postfix has this problem, its sendmail writes a
file in the maildrop queue. Further processing happends by
pickup monitoring the maildrop queue and picking it up there, without
fork/exec.)

cu Andreas