Postfix conflicts with sendmail. postfixsendmail
After sendmail is configured on the Linux Server (CentOS release 6.6), a problem is found during the test of sending the mail. Check the sendmail service status and find that it is in "sendmail dead but subsys locked ", check and find that the postfix service is also running. You only need to stop the postfix service. Why is this happening? Something was occasionally causing the postfix service to start which then caused the status of sendmail to jump to dead but subsys locked.
Procedure:
1: Check the sendmail service status
[root@DB-Server ~]# service sendmail status
sendmail dead but subsys locked
sm-client (pid 22112) is running...
2: Check the status of the postfix service.
[root@DB-Server ~]# service postfix status
master (pid 1777) is running...
3: Stop the postfix service.
[root@DB-Server ~]# service postfix stop
Shutting down postfix: [ OK ]
4: restart the sendmail service.
[root@DB-Server ~]# service sendmail stop
Shutting down sm-client: [ OK ]
Shutting down sendmail: [FAILED]
[root@DB-Server ~]# service sendmail stop
[root@DB-Server ~]# service sendmail start
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
5. Disable postfix and enable it automatically after reboot.
Check whether there is a set postfix that is automatically started after reboot.
Chkconfig -- list | grep postfix
Chkconfig postfix off
References:
Http://blog.chinaunix.net/uid-30212356-id-5081317.html