Not receiving certain admin e-mails


(Marc) #42

yum-cron is one of the jobs you don’t get emails for, right? You can try the following (won’t recommend it if you have automatic installation of updates):

grep ^email /etc/yum/yum-cron.conf
sed -i "/^random_sleep/ s/^/#/" /etc/yum/yum-cron.conf    # no waiting; the same can be accomplished changing randomWait config prop
yum-cron    # if there is any update shall email something
grep Yum $(find /var/lib/nethserver/vmail/root/Maildir/ -type f -mtime -1)

Undo changes in yum-cron.conf:

sed -i "/^#random_sleep/ s/^#//" /etc/yum/yum-cron.conf

(David P) #43

I don’t receive emails about backups neither.


(David P) #44

I don’t have automatic installation of updates, but what about the other e-mails I’m supposed to get like backup e-mails etc…


(David P) #45

So I tried what you suggested and I received the yum e-mail, any thoughts on what can be going on?


(Marc) #46

Can you check if missing emails are found under any of these directories?

  • /var/mail/
  • /var/spool/mail/
  • /var/lib/nethserver/vmail/

What’s the output of:

config show root
grep "^root:" /etc/aliases
whereis sendmail

(David P) #47

I’ve looked for the messages and I cannot find them it is as if they are not being generated.

I don’t have any special configs setup for root e-mails or aliases and it used to work prior to 1/6 and I believe I did and update, which is when I noticed those e-mails weren’t popping anymore however I still have fail2ban e-mails.

I almost want to say it has something to do with the update that I did, because I cannot find any config issues.