[systemd-devel] Alias for SMTP providers [ie. mutually exclusive service alternatives]
Mantas Mikulėnas
grawity at gmail.com
Wed Jun 16 07:46:32 UTC 2021
On Wed, Jun 16, 2021 at 10:43 AM Lennart Poettering <lennart at poettering.net>
wrote:
> On Di, 15.06.21 02:03, Kenneth Porter (shiva at sewingwitch.com) wrote:
>
> > What happens if I list multiple services in a Wants= and After= clause
> that
> > are mutually exclusive (eg. sendmail/postfix/exim? How can I say "This
> unit
> > needs to send mail" without knowing which is enabled?
>
> What does "needs to send mail" even mean? That /usr/sbin/sendmail can
> be called to queue a message? That you can talk to localhost:25?
>
> A well behaving MTA actually make /usr/sbin/sendmail work without the
> main mail daemon to be up. The mail is then only enqueued, but not
> dispatched, but that'll be done once the service is fully up.
>
Hmm, I was going to post the same at first, but it doesn't really work in
reverse -- if you want to send mail on shutdown and if the goal of
After=postfix is "run my ExecStop before postfix gets stopped", then
ability to queue doesn't help all that much.
--
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20210616/570eee1a/attachment.htm>
More information about the systemd-devel
mailing list