LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 09-12-2003, 12:31 PM   #1
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
Question Postfix running but not listening on 25


Hi,

I am running the Postfix mail server, however the server doesnt appear to be listening to port 25 as there is no listening port 25 when i run "netstat -ln". Does anyone have any idea why this is? It maybe that its because sendmail was my default MTA on installation and i didnt config something for inetd or xinetd. I am running RH8. Any ideas?

Paul
 
Old 05-27-2004, 01:07 AM   #2
phocks
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
postfix not listening

I'm not certain is this will fix your problem, but I've been looking around google trying to find a fix for postfix not listening on port 25 when accessed from another computer (external). Here's how I fixed it on mine.

When trying to telnet to port 25 the error message was: "Could not open connection to the host, on port 25: Connect Failed". I noticed that I could telnet from the host machine to localhost or 127.0.0.1 and postfix displayed the welcome message fine.

I found out that my server was only listening locally to port 25 using "netstat -an | less" displaying "127.0.0.1:25 LISTEN" instead of "0.0.0.0:25 LISTEN". I did some searching and found out that this was because of postfix running smtp in chmod mode (whatever that means). Looks like Manrake 10 installs with this by default for security.

To fix this, I changed the postfix "master.cf": vi /etc/postfix/master.cf

Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp    inet    n       -       y       -       -       smtpd
I just changed the "y" to a "n", reboot the server (postfix reload didn't seem to work). I was then able to telnet to my server on port 25!

Hope this help out a few people,

phocks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
System Not Listening for port 23, telnet installed and running john_lotz Linux - Networking 7 02-05-2009 11:12 AM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 10:12 PM
Telnet no response to port 25 running Postfix shyee Fedora 2 01-09-2005 10:13 PM
Why is inetd listening? Vincent_Vega Linux - Security 8 09-17-2004 01:38 PM
Listening to Radio idor Linux - Software 0 08-15-2003 10:40 AM


All times are GMT -5. The time now is 08:52 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration