网上找的 未尝试过 记录已备有用
关键字:
在进入系统的时候经常提示You have new mail in /var/spool/mail/root
该怎样解决呢:
这是正常的,但是不要小视哦
修改/usr/share/logwatch/default.conf/logwatch.conf配置文件
下面为显示的配置文件
[root@localhost mail]# cat /usr/share/logwatch/default.conf/logwatch.conf | grep -v ^# | grep -v ^$
LogDir = /var/log
TmpDir = /var/cache/logwatch
MailTo = [email protected]
MailFrom = Logwatch
Print = No
Range = yesterday
Detail = Low
Service = All
Service = "-zz-network" # Prevents execution of zz-network service, which
# prints useful network configuration info.
Service = "-zz-sys" # Prevents execution of zz-sys service, which
# prints useful system configuration info.
Service = "-eximstats" # Prevents execution of eximstats service, which
# is a wrapper for the eximstats program.
mailer = "sendmail -t"
LogDir = /var/log
TmpDir = /var/cache/logwatch
MailTo = [email protected]
MailFrom = Logwatch
Print = No
Range = yesterday
Detail = Low
Service = All
Service = "-zz-network" # Prevents execution of zz-network service, which
# prints useful network configuration info.
Service = "-zz-sys" # Prevents execution of zz-sys service, which
# prints useful system configuration info.
Service = "-eximstats" # Prevents execution of eximstats service, which
# is a wrapper for the eximstats program.
mailer = "sendmail -t"
将其中的MailTo更改为想要输送的邮件人地地址就可以了,我改成了我的邮件地址[email protected]
正好今天凌晨收到一封,内容分为
Named(一些不可链接的对象)
pam_unix(一些验证对象,比如sshd)
sendmail
sendmail - largeboxes(大型邮件spool文件)
SSHD(sshd的次数,一下描述信息)
磁盘空间(挂载,空间使用情况)
等这些信息
没有评论