The Invincible A personal archive of software, founder life, travel, and the occasional detour.
Randoms

Postfix failed to start after upgrade

So I’ve came across this issue recently when i updated the packages on one of my VPS. Postfix service stopped working and it didn’t start back. Tried few different ways and still it didn’t start. Nothing much helpful on the logs either.

The problem seems to be an existing process using the postfix pid lock file which might have probably left out while killing the process for updating, and doesn’t let the postfix to start again.

You can try the below steps to resolve that,

Try to find the process that’s using the postfix service

$htop

To make sure, run below with the process id you found. you should see something similar to
#ps -ef | grep 7881
root 7881 1 0 Sep16 ? 00:00:09 /usr/libexec/postfix/master -w

Kill the process
$kill 7881

Start postfix 
sudo postfix start

Related

More posts like this

Not Using AI Is a Choice, No more excuses

Frontier AI companies like OpenAI and Anthropic are competing hard, while open source models are catching up fast. This competition is driving costs down. The price per 1M tokens keeps dropping, which means you can do a lot more for a lot less. So the old excuse of 'I don't have the budget to use AI in my business' is quickly disappearing.

Read more
Day 5 of 31: Connections and Caffeine

The first Monday of the new year always feels like a reset button. For our service company, yesterday marked the official restart, and as expected, it was a busy one. The day was filled with catch-ups, follow-ups, and lots of reconnecting with clients who had patiently waited for us to get back into full swing.

Read more
Day 4 of 31: When the Day Slips Off Track

Some Sundays move at their own slow pace, and yesterday was one of them. I went into the weekend feeling excited to refactor a piece of code that’s been bothering me for weeks. But by Sunday evening, the work was still unfinished and instead of accepting that, I spent way too much time complaining to

Read more