CentOS去除"You have new mail in /v

2018-07-05  本文已影响0人  信仰与初衷
echo "unset MAILCHECK">> /etc/profile;

source /etc/profile
chmod 0 /usr/sbin/sendmailmv /usr/sbin/sendmail /usr/sbin/sendmail.bakln -s /var/qmail/bin/sendmail /usr/sbin/sendmai
cat /dev/null > /var/spool/mail/rootcat /dev/null>;/var/spool/mail/root
/etc/log.d/logwatch.conf
添加MailTo = root,xxx@xxx.com

/etc/aliases
添加root: xxx@xxx.com
上一篇下一篇

猜你喜欢

热点阅读