码迷,mamicode.com
首页 > 其他好文 > 详细

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

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

标签:linux问题

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

标签:linux问题

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!