Package: cron
Version: 3.0pl1-128+deb9u1

Debian/Ubuntu's cron version doesn't support setting MAILFROM to set the
"From:" header of cron generated emails. This feature would be nice to
have and bring parity with RHEL/CentOS which has it since RHEL 6:

$ cat /etc/redhat-release
CentOS release 6.6 (Final)

$ man 5 crontab | grep -1 FROM
    doesn´t do aliasing, and UUCP usually doesn´t read its mail.  If  MAIL-
    FROM is defined (and non-empty), it will be used as the envelope sender
    address, otherwise, ‘‘root’’ will be used.
This bug was created first under ubuntu launchpad, but as the package
is maintained in Debian project i open this bug issue.

for Ubuntu the report and comments is here:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1750051

a patch has been submitted too
https://launchpadlibrarian.net/369246026/patch_v2.txt

this patch is heavily inspired by the cronie project
https://github.com/cronie-crond/cronie/blob/master/src/do_command.c

Reply via email to