LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2003, 06:52 PM   #1
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Rep: Reputation: 15
Port 25 help...


Hi,
I have a problem with my linux box(RH 9.0). I can use telnet localhost 25 but can not do telnet IP(not 127.0.0.1) 25. I use IP Tool scan from my windows computer to check this IP and I can see port 80, 110, 21.. open. I then do /etc/rc.d/init.d/iptables stop to shut it down and re-test but still can not open port 25. The mail server I use is POSTFIX and I have no problem to send mail out.

Does anyone know how to fix it?

Thanks
 
Old 11-26-2003, 03:03 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Is it only litening on the loopback address? Post the output of:
netstat -nlp
 
Old 11-26-2003, 09:41 PM   #3
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
Is it only litening on the loopback address? Post the output of:
netstat -nlp
Here is the output. I have 2 NICs 1 for lan which has IP showed here and the other for WAN:
Code:
login as: root
Sent username "root"
root@192.168.0.81's password:
Last login: Tue Nov 25 21:15:00 2003 from 192.168.0.85
[root@server root]# netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:20000           0.0.0.0:*               LISTEN      2528/perl
tcp        0      0 0.0.0.0:32768           0.0.0.0:*               LISTEN      2159/
tcp        0      0 127.0.0.1:32769         0.0.0.0:*               LISTEN      2269/xinetd
tcp        0      0 0.0.0.0:10500           0.0.0.0:*               LISTEN      2535/perl
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      2311/
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      2269/xinetd
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      2269/xinetd
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      2140/
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN      25208/X
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2408/httpd
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      2388/
tcp        0      0 192.168.0.81:53         0.0.0.0:*               LISTEN      2240/
tcp        0      0 24.199.xxx.xxx:53        0.0.0.0:*               LISTEN      2240/
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      2240/
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2255/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2377/
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      2240/
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      2408/httpd
udp        0      0 0.0.0.0:32768           0.0.0.0:*                           2159/
udp        0      0 0.0.0.0:32769           0.0.0.0:*                           2240/
udp        0      0 0.0.0.0:10000           0.0.0.0:*                           2535/perl
udp        0      0 0.0.0.0:20000           0.0.0.0:*                           2528/perl
udp        0      0 192.168.0.81:53         0.0.0.0:*                           2240/
udp        0      0 24.199.xxx.xxx:53        0.0.0.0:*                           2240/
udp        0      0 127.0.0.1:53            0.0.0.0:*                           2240/
udp        0      0 0.0.0.0:111             0.0.0.0:*                           2140/
udp        0      0 0.0.0.0:639             0.0.0.0:*                           2159/
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path
unix  2      [ ACC ]     STREAM     LISTENING     2700   2311/               /var/lib/mysql/mysql.sock
unix  2      [ ACC ]     STREAM     LISTENING     2778   2377/               private/rewrite
unix  2      [ ACC ]     STREAM     LISTENING     2782   2377/               private/bounce
unix  2      [ ACC ]     STREAM     LISTENING     2786   2377/               private/defer
unix  2      [ ACC ]     STREAM     LISTENING     2794   2377/               private/smtp
unix  2      [ ACC ]     STREAM     LISTENING     2802   2377/               private/error
unix  2      [ ACC ]     STREAM     LISTENING     2806   2377/               private/local
unix  2      [ ACC ]     STREAM     LISTENING     2810   2377/               private/virtual
unix  2      [ ACC ]     STREAM     LISTENING     2814   2377/               private/lmtp
unix  2      [ ACC ]     STREAM     LISTENING     2818   2377/               private/cyrus
unix  2      [ ACC ]     STREAM     LISTENING     2822   2377/               private/uucp
unix  2      [ ACC ]     STREAM     LISTENING     2826   2377/               private/ifmail
unix  2      [ ACC ]     STREAM     LISTENING     2830   2377/               private/bsmtp
unix  2      [ ACC ]     STREAM     LISTENING     2880   2397/gpm            /dev/gpmctl
unix  2      [ ACC ]     STREAM     LISTENING     3200   2544/               /tmp/.gdm_socket
unix  2      [ ACC ]     STREAM     LISTENING     2941   2447/               /tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     LISTENING     2771   2377/               public/cleanup
unix  2      [ ACC ]     STREAM     LISTENING     2790   2377/               public/flush
unix  2      [ ACC ]     STREAM     LISTENING     2798   2377/               public/showq
unix  2      [ ACC ]     STREAM     LISTENING     37695  25208/X             /tmp/.X11-unix/X0
[root@server root]#

Last edited by hct224; 11-27-2003 at 01:30 PM.
 
Old 11-27-2003, 01:22 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
From the line:
Code:
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2377/
You can see that it is only listening on the loopback address (127.0.0.1). In your config file set:
inet_interfaces = all

Then restart postfix.
 
Old 11-27-2003, 01:35 PM   #5
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Original Poster
Rep: Reputation: 15
Yeah. It works. Thanks

Now, I have another question. I can send/receive internet mail(ie. someone@yahoo.com) at Linux box. However, when I use MS-outlook, I can only receive mail and can not send mail out It say: 554 <xxxxxx@yahoo.com>: Recipient address rejected: Relay access denied. I have no problem to use Outlook to send and receive mail to user(s) at the Linux box.
I think I need to get a rid of relay restriction but don't know how. Can you show me how to do that. thanks.

Last edited by hct224; 11-27-2003 at 01:38 PM.
 
Old 11-27-2003, 01:47 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I wouldn't allow complete relaying or you will be open to use by spammers. See:
http://www.postfix.org/faq.html#virtual_relay
http://www.postfix.org/basic.html#relaying
 
Old 11-29-2003, 04:08 PM   #7
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Original Poster
Rep: Reputation: 15
I found a way to solve it:
http://popbsmtp.sourceforge.net/quickstart.shtml

It works perfect with mail client(ie. outlook). Is it ok to use it? will it open for relaying mail?

Thanks
 
Old 11-29-2003, 04:34 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It should work fine the only thing is that some mail clients don't always initiate a pop connection before smtp but you should be OK from spammers.
 
Old 11-29-2003, 04:43 PM   #9
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Original Poster
Rep: Reputation: 15
Thank you.
 
  


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
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 06:58 AM
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 10:32 PM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 09:07 PM
route locally generated traffic to ip:port to localhost:port maenho Linux - Software 2 03-11-2005 05:08 AM
--destination-ports port[,port[,port...]] KevinGuy Linux - Networking 1 03-16-2004 07:06 PM


All times are GMT -5. The time now is 11:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration