Search code examples
centostelnet

Telnet connection refused


ok brand new install of Centos 6, updated, selinux off, xinetd installed, telnet server installed, both running. Made sure it was explcitly disalbed=no in xinet telnet config, I still get

        telnet localhost
       Trying ::1...
       telnet: connect to address ::1: Connection refused

        telnet localhost 25
       Trying ::1...
       telnet: connect to address ::1: Connection refused

I am trying to test postfix, and I've been told to use telnet to do it. Any suggestions.


Solution

  • I couldn't solve the telnet issue, but I found that the mail command is probably the best solution for this. easy to use and change:

    echo “This will go into the body of the mail.” | mail -s “Hello world” you@youremailid.com

    This allows test emails to be sent, and bypasses telnet.