The following error was getting generated while starting postfix service.
# /etc/init.d/sendmail status
sendmail dead but subsys locked
sm-client (pid 16432) is running…
First check postfix is running on the server.
# /etc/init.d/postfix status
(pid 2793) is running…
Try stopping the postfix service and kill the process.
Then restart sendmail service.