# /etc/rc.d/init.d/saslauthd start
# /etc/rc.d/init.d/cyrus imapd start
修改一下/usr/share/logwatch/default.conf/logwatch.conf配置文件中的邮件信息就不会再收到信了LogDir = /var/log
TmpDir = /var/cache/logwatch
MailTo = root
MailFrom = Logwatch
Print = No
Range = yesterday
Detail = Low
Service = All
把MailTo中的root设置为空,由于logwatch产生邮件就不会发送了
用root用户执行crontab -e
0 16 * * * df -h /tmp | mail -s "tmp usage" root@localhost
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)