LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-01-2001, 04:45 PM   #1
Jim Miller
Member
 
Registered: Sep 2001
Posts: 35

Rep: Reputation: 15
Port 25 not open for SMTP


I'm trying to get sendmail working on RH 7.1; unfortunately, port 25 is not open on my system. I can do "telnet localhost 25" and talk to sendmail, but telnetting to the real domain name (from my linux machine or from another host) fails with a "connection refused" message.

I found the issue with sendmail.mc's blocking external connections in RH 7.1, and have commented out the DAEMON_OPTIONS line and re-generated sendmail.cf. I've also added "sendmail:ALL" to /etc/hosts.allow. But port 25 stil isn't open, so none of this seems to matter. Any ideas as to what I'm missing?

Thanks,
Jim Miller
 
Old 10-26-2001, 11:22 AM   #2
DenisL
LQ Newbie
 
Registered: Oct 2001
Posts: 1

Rep: Reputation: 0
Smile Port 25 not open for SMTP

If you found the answer please tell me i have the same problem.

Thank you
 
Old 10-26-2001, 11:31 AM   #3
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Red Hat offers to configure a firewall for you when you install it. This can block port 25, did you enable the firewall?
 
Old 10-26-2001, 11:40 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,613

Rep: Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129Reputation: 4129
By default in RH 7.x sendmail only listens on localhost. Do a search for the answer.

http://www.linuxquestions.org/questions/search.php
 
Old 10-27-2001, 07:13 AM   #5
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..


By default the sendmail.cf file coming with RH7.1 only listen on loopback interface. u can see that in netstat -an

it will show like this

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN


Comment the following option and restart the sendmail daemon.
it will work

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA


Pls check after restarting the daemon using netstat -an.
the output will be like this

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN



This feature may be useful if we have multihomed linux and if u want to listen in particular segment or only from that machine.



Siddiqu.T

 
Old 11-15-2001, 01:46 PM   #6
Jim Miller
Member
 
Registered: Sep 2001
Posts: 35

Original Poster
Rep: Reputation: 15
Siddiqu --

Good advice; unfortunately, I've done this, and it's not working. I've commented out the DAEMON_OPTIONS line in my sendmail.mc file, and then generated a new sendmail.cf file. The sendmail.cf file contains the lines:

# SMTP daemon options
O DaemonPortOptions=Name=MTA

so it looks like the change worked. But after I restart sendmail, netstat reports that the 127.0.0.1 restriction is still in effect:

netstat -an | grep 25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

I've also tried rebooting in addition to manually restarting sendmail (just in case....), but that also gives the same result.

Any other suggestions? It looks like something else is involved....

Thanks,
Jim
 
Old 11-18-2001, 01:56 AM   #7
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
sendmail

Hi ,

Instead of 127.0.0.1 you need to put in your valid ip address and then sendmail listend on that .
If DNS is not configured on your machine than the chances are that sendmail will again start listning on 1227.0.0.1 .

I had similar problem and had to change the string and it all started working.

Regards ,
Vipul .
 
  


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
SMTP "open relay" and SMTP AUTH aikempshall Linux - Security 3 10-11-2006 09:19 AM
SMTP Port always open AJones Linux - Security 2 08-05-2005 11:34 PM
Help! SMTP port 25 on RH 8.0 - can't open it! albracco Linux - General 9 04-21-2003 04:41 PM
how to open SMTP port ? importboy03 Linux - Networking 4 02-17-2003 03:12 AM
Why my RH 7.2's smtp port haven't open default? explorer1979 Linux - General 3 06-04-2002 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:35 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