Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Postfix daemon missing?
PostPosted: Mon Jan 17, 2011 10:33 am 
Offline
Senior Newbie

Joined: Mon Jan 17, 2011 10:26 am
Posts: 5
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!


Top
   
 Post subject:
PostPosted: Mon Jan 17, 2011 5:43 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
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.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Mon Jan 17, 2011 10:44 pm 
Offline
Senior Newbie

Joined: Mon Jan 17, 2011 10:26 am
Posts: 5
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.


Top
   
 Post subject:
PostPosted: Mon Jan 17, 2011 10:54 pm 
Offline
Senior Newbie

Joined: Mon Jan 17, 2011 10:26 am
Posts: 5
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.


Top
   
 Post subject:
PostPosted: Tue Jan 18, 2011 1:01 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
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.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Tue Jan 18, 2011 1:03 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Postfix and Exim both provide and conflict with the mail-transport-agent package which means only one can be installed at a time.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Tue Jan 18, 2011 7:28 am 
Offline
Senior Newbie

Joined: Mon Jan 17, 2011 10:26 am
Posts: 5
Excellent-- thanks for the help!! I'll pick one of the two and finish out my configuration.


Top
   
 Post subject:
PostPosted: Tue Jan 18, 2011 8:38 am 
Offline
Senior Newbie

Joined: Mon Jan 17, 2011 10:26 am
Posts: 5
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).


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group