LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-15-2016, 12:12 PM   #1
arun natarajan
Member
 
Registered: Jun 2014
Posts: 111

Rep: Reputation: Disabled
telnet with port number is not working


hi,

After configuring postfix MTA on my server, not able to verify it with telnet command. Even other parameters are set accordingly. Still no success.


[root@node1 ~]# uname -a
Linux node1.cluster.com 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@node1 ~]#


[root@node1 ~]# netstat -an | grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
[root@node1 ~]#


[root@node1 ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: disabled
Policy version: 24
Policy from config file: targeted
[root@node1 ~]#


[root@node1 ~]# service iptables status
iptables: Firewall is not running.
[root@node1 ~]#


[root@node1 ~]# telnet 192.168.1.51 25
Trying 192.168.1.51...
telnet: connect to address 192.168.1.51: Connection refused
 
Old 08-15-2016, 12:17 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by arun natarajan View Post
hi,
After configuring postfix MTA on my server, not able to verify it with telnet command. Even other parameters are set accordingly. Still no success.

[root@node1 ~]# uname -a
Linux node1.cluster.com 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@node1 ~]#

[root@node1 ~]# netstat -an | grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
[root@node1 ~]#

[root@node1 ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: disabled
Policy version: 24
Policy from config file: targeted
[root@node1 ~]#

[root@node1 ~]# service iptables status
iptables: Firewall is not running.
[root@node1 ~]#

[root@node1 ~]# telnet 192.168.1.51 25
Trying 192.168.1.51...
telnet: connect to address 192.168.1.51: Connection refused
Did you actually START the postfix service????
 
Old 08-15-2016, 12:58 PM   #3
arun natarajan
Member
 
Registered: Jun 2014
Posts: 111

Original Poster
Rep: Reputation: Disabled
yes, its running

[root@node1 ~]# service postfix status
master (pid 13970) is running...
 
Old 08-15-2016, 01:32 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by arun natarajan View Post
yes, its running

[root@node1 ~]# service postfix status
master (pid 13970) is running...
Ok...and did you follow the basic postfix guide, and tell the system what interface to listen on? I notice it's only listening on 127.0.0.1...and you're trying to telnet to a different address.
http://www.postfix.org/BASIC_CONFIGURATION_README.html

Change the "inet_interfaces" directive to be ALL, or the address of your active interface.
 
1 members found this post helpful.
Old 08-15-2016, 03:54 PM   #5
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
iptables -L
iptables -F INPUT
iptables -F OUTPUT
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT

If its not a configuration issue, check the firewall.
 
Old 08-16-2016, 07:16 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by /dev/random View Post
iptables -L
iptables -F INPUT
iptables -F OUTPUT
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT

If its not a configuration issue, check the firewall.
He already did that, and posted in the first post...iptables isn't running at all, neither is SELinux.
 
  


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
Port number used by server when using dynamic port forwarding in SSH? kreeder Linux - Networking 4 11-21-2011 02:07 PM
telnet to port 25 not working from outside showe123 Linux - Server 34 04-03-2011 11:51 AM
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
USB to serail port adaptor COM port number areftaidi Linux - Software 2 09-25-2007 01:05 AM
Able to change port number between telnet and ssh? x5452 Linux - General 3 03-28-2004 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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