Hello, On my old centos 5 system I get updates from yum automatically, it sends a mail to root. on my new centos 6 things have changed and it has a thing called 'yum-cron' I have it on and it is working....except I can find no particular file where mailto might be added. The crontab is going to root, but yum-cron has nothing as far as a variable for this. yum-cron has no man page, no documents...not sure what to do on this one. Thinking about just adding 'mailto=root' in the daily and weekly cron job yum-cron has set. Again, it is definitely updating the server (did so this morning, added stuff to the yum log) but no mails. thanks bob
On Sat, Mar 3, 2012 at 9:22 PM, Bob Hoffman <bob at bobhoffman.com> wrote:> > Hello, > On my old centos 5 system I get updates from yum automatically, it sends > a mail to root. > > on my new centos 6 things have changed and it has a thing called > 'yum-cron' > > I have it on and it is working....except I can find no particular file > where mailto might be added. > The crontab is going to root, but yum-cron has nothing as far as a > variable for this. > > yum-cron has no man page, no documents...not sure what to do on this one. > Thinking about just adding 'mailto=root' in the daily and weekly cron > job yum-cron has set. > > Again, it is definitely updating the server (did so this morning, added > stuff to the yum log) but no mails. > > thanks > > bob > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos/etc/sysconfig/yum-cron has a mailto on about line 37. I have't used used it though.
Hi Bob, it is set up in /etc/sysconfig/yum-cron (/etc/sysconfig generally is a good place to look for this kind of thing). MAILTO is set to your desired mail address. I also set ERROR_LEVEL to 1 to get a mail when something was installed by yum-cron - the default setting will only send mail on error. Works like a charm, and there also is some amount of documentation about all the options in the file. Best regards, Peter.