Email-reports from nightly yum updates?

Justin Willmert justin at jdjlab.com
Sat Jan 7 04:42:03 UTC 2006


Alessandro Brezzi wrote:

> Edit the root crontab (ie: as root crontab -e) and put inside  
> MAILTO=youraccounti at yuordomain.isp <mailto:youraccounti at yuordomain.isp>
> If you want your email go thru the internet you have to customize your 
> sendmail / postix server according.
> HTH
>
> Alessandro
>
> 2006/1/6, Tarjei Knapstad <tarjei.knapstad at gmail.com 
> <mailto:tarjei.knapstad at gmail.com>>:
>
>     I've enabled the yum cronjob to update my FC4 boxes daily which is
>     fine as long as there aren't any package conflicts. Whenever there are
>     conflicts however, yum just seems to die in silence and the only way I
>     discover them is if I do a manual yum update.
>
>     Is it possible to get an email report sent if the yum update fails?
>     (It would also be nice to get reports whenever something has been
>     updated for that matter).
>
>     Cheers,
>     --
>     Tarjei
>
>     --
>     fedora-list mailing list
>     fedora-list at redhat.com <mailto:fedora-list at redhat.com>
>     To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
>
>
>
> -- 
> Alessandro Brezzi

If you aren't getting cron's messages, and better way might be to go to 
/etc/aliases and find the line that starts 'root:' (it should be the 
last line or so). Replace what is there with your username (or a full 
email address if you want it to be moved to a remote server) and (if I 
remember correctly...) uncomment the line. Then you need to save the 
file and in your shell prompt, type 'newaliases' (as root of course). 
Now any service that sends their status messages to root will come into 
your mailbox so your are informed immediately.

Justin Willmert




More information about the fedora-list mailing list