liunx postfix与sendmail 开启与关闭

1:检查 sendmail 服务的状态

  service sendmail status

2:开启 sendmail 服务

  service sendmail start
3:关闭 sendmail 服务

  service sendmail stop

4:重启 sendmail 服务

  service sendmail reload


5:检查一下是否有设定 sendmail 在 reboot 后自动启动

  chkconfig --list | grep sendmail
  chkconfig sendmail off  全部关闭

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1:检查 postfix 服务的状态

  service postfix status
2:开启 postfix 服务的状态

  service postfix start
3:关闭 postfix 服务的状态

  service postfix stop

4:重启 postfix 服务的状态

  service postfix reload

5:检查一下是否有设定 postfix 在 reboot 后自动启动

  chkconfig --list | grep postfix
  chkconfig postfix off  全部关闭