1:关闭You have new mail in /var/spool/mail/root 提示
[root@cifi-BI etc]# echo "unset MAILCHECK" >> /etc/profile
[root@cifi-BI etc]# source /etc/profile
2:关闭sendmail邮件功能:
[root@cifi-BI etc]# service sendmail stop
[root@cifi-BI etc]# chkconfig --list sendmail
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@cifi-BI etc]# chkconfig --level 2 sendmail off
[root@cifi-BI etc]# chkconfig --level 3 sendmail off
[root@cifi-BI etc]# chkconfig --level 4 sendmail off
[root@cifi-BI etc]# chkconfig --level 5 sendmail off