Logrotate and other server emails


#1

Hello,

There are a few posts on here about logrotate but none specifically say if I should be receiving a daily email from the server stating:

/etc/cron.daily/logrotate:

  • Re-opening nginx log files nginx
    …done.
  1. I am assuming that since there is no error or warning that I am supposed to be getting this message?
  2. I have a staging and production server up and they both send me the emails but not daily… Some mornings I will have an email from both and some mornings just one of them. Is that strange?

Also, these emails all go to my junk folder. They are from root and to root. The subject line is Cron root@sitename test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) I have mailgun set up and working on both servers and all domains.

Is there a way to get this to be better formatted so it stops going to junk?

Thank you,
Josh


#2

Anybody?

Does everyone else get logrotate emails from their staging and production servers?

Do these and the certificate refresher emails and others go to your spam box and just come from root to root or can I customize the to and from so that maybe it does not go to the spam box?

Thanks,
Josh


#3