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

-- 
"You people are noisy," Nia said.
I made the gesture of agreement.

Reply via email to