Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #200474
| From | kjonca@poczta.onet.pl (Kamil Jońca) |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | exim4 only queues mails sent by systemd service |
| Date | 2018-09-23 13:10 +0200 |
| Message-ID | <wBar0-9T-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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? Morevoer this service run as "--user" service works as expected - mails are delivered at once. KJ -- http://wolnelektury.pl/wesprzyj/teraz/ Better hope the life-inspector doesn't come around while you have your life in such a mess.
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
exim4 only queues mails sent by systemd service kjonca@poczta.onet.pl (Kamil Jońca) - 2018-09-23 13:10 +0200
Re: exim4 only queues mails sent by systemd service kjonca@poczta.onet.pl (Kamil Jońca) - 2018-10-03 09:10 +0200
Re: exim4 only queues mails sent by systemd service <tomas@tuxteam.de> - 2018-10-03 10:00 +0200
csiph-web