yum-cron runs successfully but no email received

Posted on

Good day everyone,

I have been testing yum-cron on one of my RHEL6 servers and for some reason I am not receiving emails even though the MAILTO variable is set in /etc/sysconfig/yum-cron. I can send and receive mail from the command line just fine. I scheduled yum-cron to kick off at 8:00AM my time by moving the 0yum-cron script from /etc/cron.daily to /etc/cron.d so that I could test the configuration. There are no errors in /var/log/messages indicating an error with mail. What am I doing wrong here?

MAILTO variable set in /etc/sysconfig/yum-cron
Note: I removed my work email

MAILTO="myemailhere@domain.com"

/var/log/cron log to prove it's running
Oct 28 08:01:01 rlmdbtst CROND[6916]: (root) CMD (run-parts /etc/cron.hourly)

/var/log/yum.log
Oct 28 08:02:20 Updated: tzdata-2015g-2.el6.noarch
Oct 28 08:02:24 Updated: bash-4.1.2-33.el6_7.1.x86_64
Oct 28 08:02:33 Updated: glibc-common-2.12-1.166.el6_7.3.x86_64
Oct 28 08:02:41 Updated: glibc-2.12-1.166.el6_7.3.x86_64
Oct 28 08:02:41 Updated: nss-softokn-freebl-3.14.3-23.el6_7.x86_64
Oct 28 08:02:41 Updated: db4-4.7.25-20.el6_7.x86_64
Oct 28 08:02:45 Updated: pam-1.1.1-20.el6_7.1.x86_64
Oct 28 08:02:46 Updated: openldap-2.4.40-6.el6_7.x86_64

Nothing in /var/log/maillog when yum-cron finished
Oct 28 07:55:43 rlmdbtst sendmail[6275]: daemon MTA: problem creating SMTP socket
Oct 28 07:55:43 rlmdbtst sendmail[6275]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting

The output above in /var/log/maillog is from a test I conducted when running mail through the command line. In this case I received an email from the root user to my email inbox.

Responses