This article explains how to set the MAILFROM variable in RHEL 8 and RHEL 9 crontabs when the HOSTNAME environment variable is not defined.