Linux关闭sendmail服务

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

参考来自此处

 

posted @ 2016-02-23 10:26  Stepheng  阅读(280)  评论(0)    收藏  举报