Postfix daemon missing?
/etc/init.d/postfix
…and noticed that the reference to the DAEMON binary (/usr/sbin/postfix) seems to be completely missing from my system…
DAEMON=/usr/sbin/postfix
…and hence the following check is stopping the script before it can start…
test -x $DAEMON && test -f /etc/postfix/main.cf || exit 0
I'm not exactly sure how to proceed from here.. I searched the file system but didn't see it anywhere-- do I re-install postfix?
Any suggestions would be appreciated.. Thanks!
7 Replies
apt-get --reinstall install postfix
I'm 85% sure this will not overwrite any existing configuration, but of course, you probably want to back everything up anyway (files don't normally delete themselves). Or, if you have a system with the exact same architecture, distribution, and release, you can simply copy that specific file to the disadvantaged system.
I did see the following interesting output on running the reinstall command listed above (have a look at the packages to be removed):
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
resolvconf postfix-cdb ufw
The following packages will be REMOVED:
exim4-base exim4-config exim4-daemon-light
The following NEW packages will be installed:
postfix
0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.
Need to get 0B/1321kB of archives.
Scratching my head trying to figure out how exim is related here? I wonder if that's what messed up the install of postfix. I'll continue to dig a little more and post what I find.
guideguide
Although I did stop at the postfix configuration step for sending emails, here