[CentOS] Cron sending to root after changing MAILTO

Wed Jul 19 23:13:18 UTC 2017
hns1 at iinet.net.au <hns1 at iinet.net.au>

 

----- Original Message -----
From: "CentOS mailing list" 
To:"CentOS mailing list" 
Cc:
Sent:Wed, 19 Jul 2017 20:46:21 +0000
Subject:[CentOS] Cron sending to root after changing MAILTO

 I am running CentOS 7 on an outbound gateway server running
Postfix.  I have a couple of cron jobs I was expecting to see in my
email that never showed up.  It turns out that they were delivered to
root, which is restricted on our exchange server, instead of the
address I defined.  Please help.

The quick fix for such issues is to put a .forward file in the /root
folder containing your target e-mail address, ecssupport at csusb.edu