执行:
echo "unset MAILCHECK" >> /etc/profile
source /etc/profile

查看
ls -lth  /var/spool/mail/

清空:
cat /dev/null > /var/spool/mail/root 

以下是我的过程

[root@dir ~]# echo "unset MAILCHECK" >> /etc/profile

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

[root@dir ~]# source /etc/profile

[root@dir ~]# ls -lth  /var/spool/mail/


总用量 29M

-rw-------. 1 root     mail  29M 12月  1 09:14 root

-rw-rw----. 1 nagios   mail 3.5K 10月  9 01:07 nagios

-rw-rw----. 1 zabbix   mail    0 7月  16 02:13 zabbix

-rw-rw----. 1 caimz    mail    0 7月   6 20:36 caimz

-rw-rw----. 1 wuhao    mail    0 7月   6 19:35 wuhao

-rw-rw----. 1 wuhao    mail    0 7月   6 19:34 wh

-rw-rw----. 1 php-fpm  mail    0 6月  25 01:24 php-fpm

-rw-rw----. 1 virftp   mail    0 6月  17 19:06 virftp

-rw-rw----. 1 liukm    mail    0 6月   8 18:03 liukm

-rwxrwxrwx. 1 root     root  208 5月  29 2015 test_myfuncs

-rwxrwxrwx. 1 root     root   80 5月  29 2015 myfuncs

-rw-rw----. 1 linuxsir mail    0 4月  29 2015 linuxsir

-rw-rw----. 1 sir04    mail    0 4月  29 2015 sir04

-rw-rw----. 1 sir03    mail    0 4月  29 2015 sir03

-rw-rw----. 1 sir02    mail    0 4月  29 2015 sir02

-rw-rw----. 1 sir01    mail    0 4月  29 2015 sir01

-rw-rw----. 1 user1    mail    0 4月   2 2015 user1

-rw-rw----. 1 chenhz   mail    0 3月  31 2015 chenhz

-rw-rw----. 1 hzp      mail    0 3月  31 2015 hzp

-rw-rw----. 1 www      mail    0 3月  31 2015 www

-rw-rw----. 1      506 mail    0 3月  26 2015 cy

-rw-rw----. 1 lrq      mail    0 3月  26 2015 lrq

-rw-rw----. 1 smb2     mail    0 3月  26 2015 smb2

-rw-rw----. 1 chenle   mail    0 3月  26 2015 chenle

-rw-rw----. 1 leco     mail    0 3月  24 2015 leco

-rw-rw----. 1 rpc      mail    0 3月  24 2015 rpc

[root@dir ~]# cat /dev/null > /var/spool/mail/root 

[root@dir ~]# 


Connection closed.


Disconnected from remote host(PC_Company) at 09:15:17.


Type `help' to learn how to use Xshell prompt.

[c:\~]$ 


Connecting to 192.168.0.186:22...

Connection established.

To escape to local shell, press 'Ctrl+Alt+]'.


Last login: Tue Dec  1 09:14:33 2015 from 192.168.0.138

[root@dir ~]# ls