LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2010, 12:18 PM   #1
Sinedie
Member
 
Registered: Nov 2006
Posts: 71

Rep: Reputation: 15
Postfix + Mdv 2010: "Connection refused" error


Hello,
I am trying to run Postfix mail server on a Mdv 2010 (One). I have installed alpine, sent and received a mail from the localhost to itself. I can connect to the same system with full hostname at port 25 with telnet. But I can't do the same from any other machine. In fact, when I do a nmap scan, I don't see the port 25 at all, but see others, like 22 and 80 (sshd, apache).

I turned off the shorewall service, turned off and verified iptables to default rules, and blanked /etc/hosts.deny and added ALL:ALL in /etc/hosts.allow. Still I do not see port 25 at all!

Can anyone suggest me a way out please?
Thanks,
-S
 
Old 03-20-2010, 11:53 AM   #2
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
As nobody else has answered, I'll have a crack at helping you. Drawing this out in my head you have a Mandriva 2010 server running Postfix that you can successfully 'telnet 127.0.0.1 25' locally, but other clients inside the lan can't reach it?
You've killed the firewall on the Mandriva 2010 running Postfix and checked the allow/deny hosts files. All this and you still can't reach that server with: 'telnet <server_IP> 25'???

Asking the obvious thing first, the server is in the same LAN segment hanging off the same router/switch? It's not in a VLAN of any kind? You don't have a router/gateway doing Application filtering like a Cisco Pix (Fixup) or similar intercepting port 25?

Can you telnet to any open service eg web: telnet <server_IP> 80? What exactly happens - does it appear to hang for a long period or do you get kicked right away with 'connection refused'?

If you are satisfied that your firewall/router is not intercepting port 25 and things are in the same physical LAN the next step for me would be to run TCPDump on the Mandriva box and telnet into it on port 25 and see what I could see. This would grab all port 25 traffic and write it to a local file you can open with Wireshark:
Code:
tcpdump -vv -x -X -s 1500 port 25 -w smtp.pcap
I hope this helps you in some way.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
anybody familiar with this error "Xlib: connection to ":0.0" refused by server" ? rajnivanza Linux - Newbie 3 03-22-2009 05:10 PM
Nomachine nxclient error: Xlib: connection to ":0.0" refused linux_junky SUSE / openSUSE 7 02-11-2009 03:45 PM
how to open port 3495 - I get the error "connection refused" ron9999 Linux - Networking 4 07-01-2007 06:26 PM
ircd.conf: "Connection failed. Error: Connection refused" hamish Linux - Software 3 03-10-2005 07:23 AM
Apache "Connection was refused" remote access error spicychicken Linux - Newbie 7 02-11-2005 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration