LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   telnet with port number is not working (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-with-port-number-is-not-working-4175587116/)

arun natarajan 08-15-2016 12:12 PM

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

TB0ne 08-15-2016 12:17 PM

Quote:

Originally Posted by arun natarajan (Post 5591151)
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????

arun natarajan 08-15-2016 12:58 PM

yes, its running

[root@node1 ~]# service postfix status
master (pid 13970) is running...

TB0ne 08-15-2016 01:32 PM

Quote:

Originally Posted by arun natarajan (Post 5591199)
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.

/dev/random 08-15-2016 03:54 PM

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.

TB0ne 08-16-2016 07:16 AM

Quote:

Originally Posted by /dev/random (Post 5591283)
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.


All times are GMT -5. The time now is 04:37 PM.