LinuxQuestions.org
Visit Jeremy's Blog.
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 08-30-2003, 04:06 AM   #1
argh2005
Member
 
Registered: Aug 2003
Distribution: redhat 9.0
Posts: 37

Rep: Reputation: 15
Cool port 25 won't open


Anyone know why my port 25 and 110 on linux redhat 9.0 is not open?

I check my iptables in /etc/sysconfig/iptables and see that port 25 is using ACCEPT option which meant it's open.

I did check nmap localhost and see that port 25 is open.

But somehow when i do nmap mydomain.org/com/net then the port 25 is not open but in state closed.

I need port 25 for my sendmail to work with my squirrelmail. So I be able to send mail and receive mail to outside source.

I did configure my sendmail such as.. go into /etc/mail/sendmail.mc and comment out the following line:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

That is, place a dnl in front so it looks like the following:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Then I remake sendmail.cf file by moving into the /etc/mail directory and typing in make -C /etc/mail

Then I restart sendmail. (/etc/init.d/sendmail/restart)

Errr... the problem still not solve. I think that my deamon somehow is not listening to port 25. What do you guy think?

But if i do nmap localhost i see port 25 open.. that's doesn't make sense to my idea of daemon is not listening to port 25.

I'm right now very confuse.. any help? Please do.. i really appreciate it.

BTW.. I'm not an expert in linux or anything.. just a wanna be .. so please explain to me in a very gentle way ... or else I'll be even more confuse.

Thanks guy.. hope you guy read this statement and come up a solution that will work for me.
 
Old 08-30-2003, 04:21 AM   #2
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
what you have might be a name resolution problem. Does the machine have any other IP ?

what IP does yourdomain.org/com/net point to ?
 
Old 08-30-2003, 05:15 AM   #3
argh2005
Member
 
Registered: Aug 2003
Distribution: redhat 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
well my server also have apache running.. and host 3 virtual domain name. The domain name point to the private ip that point to specific server that I have.. the router do all the work...

btw the router also open for port 25 and 110..

I'm still not clear what you meant a name resolution problem.

Because squirrelmail able to let user log into login page, and access login folder such as inbox etc.. just that they can't send email or receive email etc...
 
Old 08-30-2003, 05:22 AM   #4
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
what I meant is this:

if yourdomain.org/net/com is pointing to 10.1.1.10 (which is an IP on your machine), then your sendmail and your firewall both need to open/listen on 10.1.1.10 in addition to 127.0.0.1

what I understood from you is that connections are fine with 127.0.0.1 (localhost) as nmap and others are showing, but not for 10.1.1.10 (yourdomain.org/net/com).

is this your case ?
 
Old 08-30-2003, 05:49 AM   #5
argh2005
Member
 
Registered: Aug 2003
Distribution: redhat 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
I know my firewall is open/listen on ex: 10.1.1.10

But how do you configure sendmail to do the same thing?
 
Old 08-30-2003, 06:04 AM   #6
jalal
Member
 
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
not really sure, but you can try this:

DAEMON_OPTIONS(`Port=smtp,Addr=10.1.1.10, Name=MTA')dnl
 
Old 08-30-2003, 06:28 AM   #7
argh2005
Member
 
Registered: Aug 2003
Distribution: redhat 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
wow, finally, hehe, I'm so happy

Thanks jalal.. you a great help
 
Old 08-30-2003, 06:30 AM   #8
argh2005
Member
 
Registered: Aug 2003
Distribution: redhat 9.0
Posts: 37

Original Poster
Rep: Reputation: 15
oh.. oops.. i can only receive it, but not being able to send it out weird...
 
Old 08-30-2003, 11:33 AM   #9
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Just a thought - many ISPs are now blocking outgoing 25.
 
  


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
Need to open a port... perry Linux - Networking 6 05-19-2007 02:23 PM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 09:44 AM
How to open a port Y2K-FRC Linux - Newbie 2 02-09-2004 10:39 AM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 01:16 PM
Open Port d-man38 Linux - Security 3 04-15-2001 02:43 PM

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

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