Question

OpenSSH and Postfix broken after Mandrake upgrade

Asked by: Joeyman

I recently upgraded from Mandrake 9.0 to 9.2rc2. A number of things, including Apache, Postfix, and OpenSSH, ceased to function after the upgrade. By sheer luck, I got Apache going again, but OpenSSH and Postfix are both still not working. Both processes are running, and I can do "ssh localhost" successfully, but I can't connect from an outside computer. Also, Postfix will not receive any mail, nor send any. How can I get these services working again? Thank you in advance.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-09-17 at 22:14:32ID20742029
Tags

connection

,

how

Topic

Linux Setup

Participating Experts
1
Points
0
Comments
18

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Mandrake
    What is Mandrake? Where can I find more information about it?
  2. apache mandrake 7.2
    I just installed mandrake 7.2 with apache. My problem is that pages with javascript is not loaded correctly. Sometimes, the javascript code shows up on the page. Also, php pages are not loaded correctly, all the php code appears as text on the page. I am a newbie at apac...
  3. Linux Mandrake v8.0 and apache
    Hi, my version of mandrake doesn't appear to have apache installed on it. Whats the easiest most foolproof way of obtaining and installing apache for mandrake. If you can post the links that would be helpful. regards peewee
  4. ISP based on Mandrake 9
    Hi, I work at an ISP and am moving all our Windows NT setup to Linux. I have downloaded Mandrake 9 and Red Hat 8. I like Mandrake best. I talked to a few Linux users who said "You can't use Mandrake as a server. It's aimed at end-users." Question is, Is there any...
  5. SASL and Postfix not being nice on Mandrake 9.1
    All I want is to get Authenticated SMTP working on my mail server running Postfix so I can use it from any ISPs connection. I chose the Authenticated SMTP included with my Mandrake 9.1 (Postfix and SASL) which I THOUGHT would be the mimimum path of resistance! LOL Probl...
  6. Newbie to Webmin on Mandrake 8
    I'm a newbie to Webmin, and I'm going to need lots of help, but I'll just start with the first problem. My church's server is running Mandrake 8 with Apache as a webserver. I don't know what the e-mail software is exactly. We recently got a new secretary. I set her up with a ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: paullamhkgPosted on 2003-09-17 at 22:24:59ID: 9383956

Have you try re start the services of ssh and the postfix, to see any luck, sometime it dose.

Have you check the Firewall setting, since you can ssh the localhost that's mean your service is up and running, I think this may be because of the firewall disallow the connection.

If you connect from your client what's the error? is it say something like "the connection refused by the server"?

Also, check the /etc/hosts.allow.

Hope this info can help :)

 

by: JoeymanPosted on 2003-09-17 at 22:35:19ID: 9383978

My software firewall is disabled, as I am behind a router. My router is forwarding the ports correctly. I have restarted the services a number of times. When I try to SSH using puTTY, the black screen comes up for a minute, and then abruptly closes with no error message. What should be contained in my hosts.allow file to allow all connections?

 

by: paullamhkgPosted on 2003-09-17 at 22:44:31ID: 9383996

For example your internal subnet IP is 192.168.0.

for /etc/hosts.allow

add

sshd 192.168.0.

This will only allow the internal subnet IP 192.168.0.x to connect to the server by ssh

Have you also upgarde the OpenSSH during your upgrade process? if not, try to do the upgrade of the ssh, download the lastest ssh rpm and issue the rpm -Uvh ssh.xxx.rpm. you better find the latest rpm from mandrake web site, if not you can try here ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/rpms/SRPMS/ and ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/rpm/SRPMS/

 

by: paullamhkgPosted on 2003-09-17 at 22:46:28ID: 9384004

Have you also check the log files /var/log/messages and /var/log/secure, what's the message while you trying to connect by the puTTY?

 

by: JoeymanPosted on 2003-09-18 at 06:30:45ID: 9386073

As I said before, there is no error message when I try to use puTTY. The black screen comes up for a few moments, and then closes abruptly with no error message. I have also rebuilt OpenSSH from source, so I doubt that's the problem. What do I need to put in hosts.allow to allow ALL connections?

 

by: paullamhkgPosted on 2003-09-18 at 23:19:25ID: 9391432

you said you have rebuild the ssh from source, have you copy the /openssh-version/contriv/redhat/sshd.init to /etc/rc.d/init.d ?

where you install the ssh? have you put the new version of sshd stuff into the /usr/bin?

since I'm now not in my office I can't show you which sshd stuff should put into the /usr/bin, but you can check those files and copy from the new ssh directory you install.

and the error messages, I mean have you check your linux server /var/log/messages and the /var/log/secure, is there any messages show about the sshd error?

Do you mean for everyone even outsider? if yes, it shoud be sshd:ALL will do, but not recommend, it might put you into the security risk.

 

by: JoeymanPosted on 2003-09-19 at 22:42:14ID: 9397878

Well, SSH just spontaneously started working today. paullamhkg: Although I didn't have to use any of your solutions, I will still give you some points after this question closes. However, I'm still having the problem with Postfix. If I do "telnet localhost 9265" to connect to the port Postfix is running on, I get a connection, but I don't see the message I should get that Postfix is running there. Also, when I do "netstat -tupan | grep 9265", the lines that come up are:

tcp        0      0 0.0.0.0:9265            0.0.0.0:*               LISTEN      29422/master
tcp        1      0 192.168.0.100:9265      62.65.69.4:55277        CLOSE_WAIT  -
tcp        1      0 127.0.0.1:9265          127.0.0.1:1533          CLOSE_WAIT  -
tcp        1      0 127.0.0.1:9265          127.0.0.1:1534          CLOSE_WAIT  -
tcp        1      0 192.168.0.100:9265      62.65.69.4:55239        CLOSE_WAIT  -

Since master is part of Postfix, I assume that first line is good, but I'm wondering if those four CLOSE_WAIT lines are part of the problem. Any help would be appreciated.

 

by: JoeymanPosted on 2003-09-19 at 22:45:36ID: 9397886

I should also note that although I'm using port 9265, I was still able to receive incoming mail because I have a computer that receives my e-mail on 25 and transfers it to 9265, then forwards it to this server.

 

by: paullamhkgPosted on 2003-09-21 at 19:30:31ID: 9403473

Points is not important for me as long as you over come your problem, that's fine :)

The 4 CLOSE_WAIT 2 is for localhost(127.0.0.1) and 2 is 192.168.0.100 which I think is your IP of your linux box right :)

when your mail service start, then LISTEN, there will be a connection when receive mail, after mail delivered there should be close,  I think that's normal. But I don't understand why there is 2 closed, unless there is are 2 connections, I'm not using Postfix, I'm not quite sure, may be this is how it work, sorry can't provide info. for you, hope there is another EE can give you hints. :(

Paul

 

by: JoeymanPosted on 2003-09-21 at 22:26:23ID: 9403620

192.168.0.100 is indeed my network IP. 62.65.69.4 is the IP of the box that forwards my mail on 9265. How does one close a connection that is on CLOSE_WAIT? I had a similar problem once before with Apache which I fixed by rebooting, but I'm not particularly interested in doing that. Any thoughts?

 

by: paullamhkgPosted on 2003-09-21 at 22:39:32ID: 9403648

May be that what we call a dead child, that's mean when a process completed and suppose it will finish all the process including closing, but it's wouldn't and left the process idle, the only way is kill the process or restart the service will do, no need to restart the linux box, but this only a temp solution, the solution is to check the config files to see any reason cause it and fix it, but as I said I'm not good in Postfix, can't give more detail for you.

The other thing which create the dead child is your mail client, I come acrossed in the past when I used fox mail as my client to connect to sendmail server, which always kept lots of dead child in my linux box, and I can't fix it, only thing I did was restart the sendmail service, the dead child gone. Even now, I'm using squirrellmail as my client, it's keep dead child, I've already report this to squirrelmail, hope they will give me the solution, because the dead child created by squirrelmail :(

 

by: JoeymanPosted on 2003-09-22 at 06:23:04ID: 9405482

Restarting the service doesn't make it go away... what is the syntax for using "kill" to get rid of it?

 

by: paullamhkgPosted on 2003-09-22 at 09:18:35ID: 9406807

1st you have to know the process id, use ps -aux you will got the process id and kill -9 the (process id) will do.

 

by: JoeymanPosted on 2003-09-25 at 08:53:32ID: 9429363

Problem fixed... will request refund. Thanks for all of your help, paullamhkg.

 

by: paullamhkgPosted on 2003-09-25 at 19:55:43ID: 9433145

No objections, but why not PAQ instead a delete?

Joeyman just wanted to learn how you fix your problem :)

 

by: JoeymanPosted on 2003-09-28 at 10:24:36ID: 9445924

Netminder says that I must post a solution before I can get my points back. It was a smidge complicated, but it turns out that there was a problem with pop-before-smtp that was causing Postfix to crash, although it said it was running fine. The error message in /var/log/mail was somewhat cryptic, but a Linux guru friend of mine told me to do "postmap pop-before-smtp.db", and now Postfix is running again.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...