macOS catalina no longer sends email if job outputs to stdout

After upgrade to macOS Catalina 10.15, I no longer receive emails from crontab jobs. Sometimes it's desirable, but in most cases I need to see these errors, so I could act on failures.

I know I can add to | /usr/bin/mail -s "crontab job" [email protected] to cron job to restore this functionality, but it's a hard way.

Adding crontab to Full Disk Access -- did not help, but realistically it shouldn't have.

Did someone managed to fix this odd behavior?


This issue was resolved with the macOS 10.15.4 update released in March 2020.

After upgrade to 10.15.4, I started to receive emails from cron jobs I configured. Note, you have to set

MAILFROM and MAILTO environmental variables in cron in order to receive these emails.

Example:

[email protected]
[email protected]

...

* * * * * sample_job