How to disable daily run output email from "Charlie &"?

Googled couple of pages, but there is no clear answer.

I use ssmtp instead of sendmail

up vote 11 down vote accepted

Have a read through man periodic and look for all the bits that mention output

Create a file /etc/periodic.conf if one doesn't already exist and set the *_output variables from /etc/defaults/periodic.conf to a log file. That is any path starting with a /, instead of a user account which is a plain word.

$ grep _output= /etc/defaults/periodic.conf
daily_output="root"                                     # user or /file
daily_status_security_output="root"                     # user or /file
weekly_output="root"                                    # user or /file
monthly_output="root"                                   # user or /file

Syslog should already be setup for /var/log/daily.log, /var/log/weekly.log and /var/log/monthly.log.

I'm a bit pedantic about my logging and use /var/log/periodic.$(date +%Y%m%d).<type>.log

<type> being daily, weekly, monthly, security.

  • What file should I specify for security_output? /var/log/security? – Alex G May 10 '14 at 17:06
  • or /var/log/daily.log whichever you prefer. – Matt May 10 '14 at 18:41

You can disable most of the tests by togging the _enable flag in /etc/periodic.conf

for example: daily_status_mailq_enable="NO"

setting daily_output="/dev/null" will stop you getting the emails, although as mentioned above, you may wish to log it to a file instead, since the reports can contain useful information.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.