Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 26, 2011 4:21 pm 
Offline
Newbie

Joined: Sat Mar 26, 2011 4:16 pm
Posts: 4
I used Automate::pdm::ubuntu-10-04 to install postfix, dovecot, and mysql. Dovecot and MySQL appear to be working, but Postfix is not. When I check /var/log/mail.log after restarting postfix, I get "fatal: bind: 127.0.0.1 25: Address already in use". I recently removed citadel and sendmail, but when I run "lsof -i :25", I get:

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sendmail- 5723 root 4u IPv4 3214953 0t0 TCP localhost.localdomain:smtp

When I try to test the setup with mailx, in the mail log, I see:

liberty postfix/postdrop[20478]: warning: unable to look up public/pickup: No such file or directory

I tried to remove sendmail, but both "apt-get" and "dpkg" say it's already gone. Yet, the lsof message stays the same. Is it possible that some other application is simply using the name "sendmail" as an alias? How would I figure that out? That's where I am stuck. I see all the obvious clues, but none of the obvious solutions seem to work.


Top
   
 Post subject:
PostPosted: Sat Mar 26, 2011 4:45 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Try rebooting your linode.

_________________
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: Sat Mar 26, 2011 5:12 pm 
Offline
Newbie

Joined: Sat Mar 26, 2011 4:16 pm
Posts: 4
Thanks! That fixed postfix!

My overall setup still isn't working, but I need to dig around some more to see what's actually going on.

By the way, as my name implies, I am a linux noob. Is rebooting typically necessary when installing new packages, applications, etc.? Windows always forces you to do so when necessary, so I guess I have gotten used to that.


Top
   
 Post subject:
PostPosted: Sat Mar 26, 2011 5:47 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Strictly speaking, rebooting isn't necessary for anything but booting a different kernel. It should also be done at least once after you're done making a change to the stuff that happens on boot (like, say, installing/configuring/testing web server or mail server software), just to make sure everything Does The Right Thing (tm) on boot. However, as you've found, it's also a nice quick way to stop whatever is still listening on port 25 (as well as everything else!) when you forget to stop a program before uninstalling it.

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


Top
   
 Post subject:
PostPosted: Sun Mar 27, 2011 8:54 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Generally I wouldn't have suggested rebooting but I've seen this problem before and a reboot is the simplest solution. Something to do with switching from sendmail to postfix leaves a sendmail process running.

_________________
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: Mon Mar 28, 2011 5:15 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
So... what's so hard with 'killall sendmail'?

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Mon Mar 28, 2011 9:42 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
rsk wrote:
So... what's so hard with 'killall sendmail'?


Nothing... however, 'reboot' is faster to type than 'killall sendmail && sleep 3 (or so) && service postfix start', and just as effective.

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


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