首页 > 其他 > 详细

You have new mail in /var/spool/mail/root

时间:2014-05-21 12:39:51      阅读:395      评论:0      收藏:0      [点我收藏+]

1、在进入系统的时候经常提示You have new mail in /var/spool/mail/root

echo “unset MAILCHECK” >> /etc/profile

source /etc/profile

关闭sendmail的功能:
chmod 0 /usr/sbin/sendmail
mv /usr/sbin/sendmail /usr/sbin/sendmail.bak
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

清空 /var/spool/mail/root日志
cat /dev/null > /var/spool/mail/root
cat /dev/null>;/var/spool/mail/root

2、root邮件转发到自己的邮箱
方法一:
修改此文件
/etc/log.d/logwatch.conf
添加MailTo = root,xxx@xxx.com

方法二
/etc/aliases
添加root: xxx@xxx.com



本文出自 “不变的时光” 博客,请务必保留此出处http://shansongxian.blog.51cto.com/5040181/1414522

You have new mail in /var/spool/mail/root,布布扣,bubuko.com

You have new mail in /var/spool/mail/root

原文:http://shansongxian.blog.51cto.com/5040181/1414522

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!