[systemd-devel] exim4 only queues mails sent by systemd service
Michael Biebl
mbiebl at gmail.com
Mon Sep 24 09:03:25 UTC 2018
Am So., 23. Sep. 2018 um 22:49 Uhr schrieb Kamil Jońca <kjonca at o2.pl>:
>
> It is something strange with sending mails from systemd system service:
> assume we have service file /etc/systemd/system/mailtest.service:
>
> --8<---------------cut here---------------start------------->8---
> [Unit]
> Description="Test maili"
> [Service]
> #User=kjonca
> NoNewPrivileges=false
> Type=oneshot
> ExecStart=-zsh -c 'echo xxx|mail news'
> ExecStart=-zsh -c 'echo xxx|mutt -F /dev/null -s subject -e \'set copy=no\' kjonca'
> --8<---------------cut here---------------end--------------->8---
>
> When I call
> sudo systemctl start mailtest.service
> Two messages are put in exim queue, but not deliveried immediately.
> Why? What am I missing?
Fwiw, I tried your example service file, works for me.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
More information about the systemd-devel
mailing list