Bug#932123: nullmailer-send does not work as /var/spool/nullmailer/trigger is missing
I didn't noticed that files were being handled by systemd-tmpfiles. When running the command above I discovered a problem with /var owner that made fail systemd-tmpfiles. Once I'd solved that the trigger file was created running 'dpkg-reconfigure nullmailer' and everything is running ok now. I'm sorry as it was only a permission problem in my machine. In the first moment I'd think the creation of the trigger file was not handled at all, but it is, so we can close this bug now. Thank you for the help.
Bug#932123: nullmailer-send does not work as /var/spool/nullmailer/trigger is missing
David Bremner writes: > "Alejandro S." writes: > >> Hi David, >> >> I'm running stable (buster), I just tested purging and reinstalling but >> didn't solved the problem. >> >> Keep in mind that if you are still using SysV init it would work ok, as the >> responsible for creating the /var/spool/nullmailer/trigger is >> /etc/init.d/nullmailer, but if you are using only systemd, I think that >> init.d file is no longer used, so nobody is recreating the trigger file. >> In this machine I have purged the sysv packages (initscripts sysv-rc >> insserv startpar) as recommended by the installation guide [0]. > > I'm running testing, but the same nullmailer version. I'm running > systemd. I don't have initscripts, sysv-rc, insserv or startpar > installed. > > I admit it's not clear to me how the trigger file is being created, but > it definitely is. > With some help from Ansgar Burchardt, I realized/remembered that the pipe is being created by systemd-tmpfiles in the postinst. Can you try running (as root) # systemd-tmpfiles --create nullmailer.conf The error output of that is redirected to /dev/null in the postinst, but running it interactively should help figure out what went wrong also you might check /usr/lib/tmpfiles.d/nullmailer.conf, it should contain p /var/spool/nullmailer/trigger 622 mail root
Bug#932123: nullmailer-send does not work as /var/spool/nullmailer/trigger is missing
"Alejandro S." writes: > Hi David, > > I'm running stable (buster), I just tested purging and reinstalling but > didn't solved the problem. > > Keep in mind that if you are still using SysV init it would work ok, as the > responsible for creating the /var/spool/nullmailer/trigger is > /etc/init.d/nullmailer, but if you are using only systemd, I think that > init.d file is no longer used, so nobody is recreating the trigger file. > In this machine I have purged the sysv packages (initscripts sysv-rc > insserv startpar) as recommended by the installation guide [0]. I'm running testing, but the same nullmailer version. I'm running systemd. I don't have initscripts, sysv-rc, insserv or startpar installed. I admit it's not clear to me how the trigger file is being created, but it definitely is. d
Bug#932123: nullmailer-send does not work as /var/spool/nullmailer/trigger is missing
Hi David, I'm running stable (buster), I just tested purging and reinstalling but didn't solved the problem. Keep in mind that if you are still using SysV init it would work ok, as the responsible for creating the /var/spool/nullmailer/trigger is /etc/init.d/nullmailer, but if you are using only systemd, I think that init.d file is no longer used, so nobody is recreating the trigger file. In this machine I have purged the sysv packages (initscripts sysv-rc insserv startpar) as recommended by the installation guide [0]. [0]: https://www.debian.org/releases/stable/amd64/release-notes/ch-information.html#obsolete-sysvinit-packages Regards, Alejandro
Bug#932123: nullmailer-send does not work as /var/spool/nullmailer/trigger is missing
Hi Alejandro; I just purged and re-installed nullmailer on this (Debian testing) qmachine and /var/spool/nullmailer/trigger was re-created. It would be helpful to know if the same is true for you (after backing up your nullmailer configuration). d
Bug#932123: nullmailer-send does not work as /var/spool/nullmailer/trigger is missing
Alejandro Suarez writes: Control: severity -1 normal > Package: nullmailer > Version: 1:2.2-3 > Severity: grave > Tags: patch > Justification: renders package unusable I'm using the package on about 10 systemd based machines, so I think there is something else going on here. I'm dropping the severity for now, until I can understand what the problem you are encountering is. d
Bug#932123: nullmailer-send does not work as /var/spool/nullmailer/trigger is missing
Package: nullmailer Version: 1:2.2-3 Severity: grave Tags: patch Justification: renders package unusable Dear Maintainer, The systemd unit file /lib/systemd/system/nullmailer.service does not create the fifo file /var/spool/nullmailer/trigger as their init.d equivalent did. That causes nullmailer-send to exit with the following error without sending the mail in the queue: Could not open trigger file: No such file or directory This could be solved adding to the systemd service definition (/lib/systemd/system/nullmailer.service) this line: ExecStartPre=-/usr/bin/mkfifo /var/spool/nullmailer/trigger ; /bin/chmod 0622 /var/spool/nullmailer/trigger Please find attached the patch file. Regards, Alejandro *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- System Information: Debian Release: 10.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages nullmailer depends on: ii debconf [debconf-2.0] 1.5.71 ii libc6 2.28-10 ii libgnutls303.6.7-4 ii libstdc++6 8.3.0-6 ii lsb-base 10.2019051400 nullmailer recommends no packages. nullmailer suggests no packages. -- debconf information: * nullmailer/adminaddr: asua...@teconecta.es nullmailer/defaultdomain: teconecta.es * nullmailer/relayhost: * shared/mailname: server-2.teconecta.es --- /lib/systemd/system/nullmailer.service 2019-07-15 14:53:14.744380161 +0200 +++ /lib/systemd/system/nullmailer.service.new 2019-07-15 15:06:27.609081283 +0200 @@ -7,6 +7,7 @@ [Service] WorkingDirectory=/var/spool/nullmailer +ExecStartPre=-/usr/bin/mkfifo /var/spool/nullmailer/trigger ; /bin/chmod 0622 /var/spool/nullmailer/trigger ExecStart=/usr/sbin/nullmailer-send User=mail Group=mail