[systemd-devel] exim4 only queues mails sent by systemd service

Lennart Poettering lennart at poettering.net
Mon Sep 24 19:17:44 UTC 2018


On Mo, 24.09.18 22:14, Mantas Mikulėnas (grawity at gmail.com) wrote:

> On Mon, Sep 24, 2018, 22:13 Kamil Jońca <kjonca at o2.pl> wrote:
> 
> > Lennart Poettering <lennart at poettering.net> writes:
> >
> > > On Mo, 24.09.18 20:34, Kamil Jońca (kjonca at o2.pl) wrote:
> > >> >     This didn't work well enough IIRC, but if it did, then it'd
> > provide almost postfix-like architecture.
> > >> >
> > >> > Or just making 'sendmail' send a SIGALRM to the main daemon would do
> > the job perfectly well, I suspect...
> > >>
> > >> But I still does not know, where is the problem, why exim doest not play
> > >> well with systemd ...
> > >
> > > Here's an educated guess: your script terminates, so that that systemd
> > > decides your service has ended. In such a case it kills any left-over
> > > processes of the service, and this will include the exim process
> > > forked off into the bg, because it is attributed to your script's
> > > context.
> > I made some tests  (ie.add sleep at end of exec line),
> > and this confirms your explanation.
> > But ... why this is working as --user service? pure luck?
> >
> 
> Maybe the --user manager doesn't have privileges to kill a setuid-root
> process.

Precisely.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list