1.关闭sendmail服务
[root@even200 ~]# service sendmail stop
关闭 sm-client: [确定]
关闭 sendmail: [确定]
2.查看linux系统启动项
[root@even200 ~]# chkconfig --list sendmail
sendmail 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
3.关闭启动项
[root@even200 ~]# chkconfig --level 2 sendmail off
[root@even200 ~]# chkconfig --level 3 sendmail off
[root@even200 ~]# chkconfig --level 4 sendmail off
[root@even200 ~]# chkconfig --level 5 sendmail off
4.验证是否关闭
[root@even200 ~]# chkconfig --list sendmail
sendmail 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭