1、在进入系统的时候经常提示You have new mail in /var/spool/mail/root
echo “unset MAILCHECK” >> /etc/profile
source /etc/profile
关闭sendmail的功能:
chmod 0 /usr/sbin/sendmailmv /usr/sbin/sendmail /usr/sbin/sendmail.bakln -s /var/qmail/bin/sendmail /usr/sbin/sendmail清空 /var/spool/mail/root日志
cat /dev/null > /var/spool/mail/rootcat /dev/null>;/var/spool/mail/root2、root邮件转发到自己的邮箱
方法一:修改此文件/etc/log.d/logwatch.conf添加MailTo = root,xxx@xxx.com方法二
/etc/aliases添加root: xxx@xxx.com