Get upcp cron update emails only on erro

jazee

Well-Known Member
Jan 12, 2015
142
15
68
cPanel Access Level
Root Administrator
I'm sick and tired of getting the upcp update cron emails every day. A major frustration is is when I do keyword searches in my Outlook, I always get these emails as matching as there is SO much text in them. (Yes, one solution would be to create an Outlook rule to permanently delete these email from the trash.)

The REAL issue though is, the purpose of these emails, in my estimation, is to alert you of any issues in the update process. However this requires you to go through and read the entire huge message! And 99% of the time, there's no issues, so it's a waste of time!

The Cpanel people are pretty smart. They've made a great product. Is it not possible for them to email ONLY when there are errors in the update?

In the meantime, aside from adding >/dev/null 2>&1 to the command in the crontab to stop emails all together (which then you would not see any errors), has anyone come up with a better solution or are you all living with receiving these emails every day... I mean come one.. what percentage of sys admins are actually going through the email every day line by line?

I was thinking maybe wrapping it with chronic? But I'm wondering if chronic wouldn't really work here because the command in the crontab to run the update upcp doesn't appear to be a bash script.

Cronic - A cure for Cron's chronic email problem
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

It's not possible to configure the cPanel update notification emails to only deliver in the event of an error or failure, however I encourage you to open a feature request if this is a feature you'd like to see included with the product:

Submit A Feature Request

Another workaround to consider in the meantime is to setup an email filter that only delivers the message if the message body contains the words "FATAL" or "Error".

Thanks!