Search This Blog

Wednesday, September 19, 2018

How to fix postfix master dead but pid file exists


$ sudo service postfix status
master dead but pid file exists
One possible likely problem is that another process has already occupied the default port 25.



$ sudo -i lsof -i :25
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
sendmail 2607 root    4u  IPv4  11406      0t0  TCP localhost:smtp (LISTEN)

In /var/log/maillog you could get the line in the log:
Code:
postfix/master[7240]: fatal: bind 127.0.0.1 port 25: Address already in use

You can fix it by:

$ sudo yum -y remove sendmail