Linode Forum
https://forum.linode.com/

Postfix daemon missing?
https://forum.linode.com/viewtopic.php?f=11&t=6567
Page 1 of 1

Author:  GubbaBump [ Mon Jan 17, 2011 10:33 am ]
Post subject:  Postfix daemon missing?

Having trouble getting postfix started, I looked in the script at...

/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!

Author:  hoopycat [ Mon Jan 17, 2011 5:43 pm ]
Post subject: 

Reinstall would be the quickest and easiest, depending on which distribution you're running. For Debian/Ubuntu,

Code:
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.

Author:  GubbaBump [ Mon Jan 17, 2011 10:44 pm ]
Post subject: 

Thanks for the suggestion. What I couldn't figure out is that I'm pretty sure I had postfix running successfully a few weeks ago.

I did see the following interesting output on running the reinstall command listed above (have a look at the packages to be removed):

Code:
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.

Author:  GubbaBump [ Mon Jan 17, 2011 10:54 pm ]
Post subject: 

I first set up exim to receive mail from this guide, and then later added the ability to receive mail with postfix using this guide guide.. I'm wondering if perhaps something got messed up along the way in that these two things aren't meant to be used simultaneously..?

Although I did stop at the postfix configuration step for sending emails, here.

Author:  hoopycat [ Tue Jan 18, 2011 1:01 am ]
Post subject: 

You can only have one MTA installed at a time. When exim was installed, postfix was uninstalled (and installing postfix would uninstall exim). Good news is that they both do the same things, more or less. So, installing postfix per that guide will obviate the need for exim, since it will be able to send mail too.

Author:  obs [ Tue Jan 18, 2011 1:03 am ]
Post subject: 

Postfix and Exim both provide and conflict with the mail-transport-agent package which means only one can be installed at a time.

Author:  GubbaBump [ Tue Jan 18, 2011 7:28 am ]
Post subject: 

Excellent-- thanks for the help!! I'll pick one of the two and finish out my configuration.

Author:  GubbaBump [ Tue Jan 18, 2011 8:38 am ]
Post subject: 

Got everything fixed.. thanks again! I'm sure what was mentioned above is what happened-- probably when I went to install exim I didn't see the warning that postfix was going to be uninstalled (or at least part of it).

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/