Re: need for open-minded help with popularity-contest with systemd timer
Richard Lewis <richard.lewis.debian-gM/[email protected]> Wed, 29 Jul 2026 13:27:05 +0100
| Newsgroups | gmane.linux.debian.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Simon Richter <[email protected]> writes: > Hi, > > On 7/26/26 18:29, Andreas Metzler wrote: > >>> Can we create a systemd service that sends a mail, and has its own >>> lifetime >>> and permissions? > >> 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. > > /usr/bin/sendmail is a Unix interface. > > It assumes Unix semantics: > - runs as the calling user > - has access to the user home directory > - additional privileges are defined by the sysadmin through > setuid. The distribution provides a default > - background tasks can linger > > Systemd explicitly does not want to follow Unix semantics i think just the last one is the issue. but is that really part of the sendmail interface or an accident of how exim implements it? cleaning up broken lingering processes is a nice benefit of systemd > So: if there should be a way for a program to send mail, there needs > to be a dbus service, with proper authorization through the policy > framework. dbus seems a but overkill?