Package: heirloom-mailx Version: 12.5-4 Severity: normal Tags: upstream Dear Maintainer,
I noticed, that heirloom-mail does not send any mails, when called via anacron. I tried the following script, placed in /etc/cron.daily: ---- #!/bin/sh /usr/bin/heirloom-mailx -s test root@localhost < /tmp/test.txt ---- /tmp/test.txt contains multiple lines of text (no UTF-8) and is world readable. When anacron runs "run-parts --report /etc/cron.daily" the script is executed (which I verified), but no mail is sent. Even /usr/sbin/sendmail is not called in this case. A mail is sent as expected when - I call the script directly - it is executed via "at" - it is executed via a cron script in /etc/cron.d - I use bsd-mailx instead of heirloom-mailx - the script generates some output which is sent by anacron itself ("Anacron job 'cron.daily' on host ...") - when I execute "anacron -d" and cron.daily starts What I also tested but did not solve the problem: - set various environment variables (from, MAILFROM, MAILRC=/dev/null, MAILTO) - set different parameters (-n, -r root@...) - install the lastest version of heirloom-mailx (nail) from CVS (12.5 7/5/10) It makes no difference if the script is placed in cron.daily, cron.weekly or cron.monthly. Best regards Bjoern -- System Information: Debian Release: 8.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages heirloom-mailx depends on: ii base-files 8+deb8u1 ii libc6 2.19-18 ii libgssapi-krb5-2 1.12.1+dfsg-19 ii libssl1.0.0 1.0.1k-3+deb8u1 heirloom-mailx recommends no packages. Versions of packages heirloom-mailx suggests: ii exim4 4.84-8 ii exim4-daemon-light [mail-transport-agent] 4.84-8 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org