LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Telnet troubles (https://www.linuxquestions.org/questions/linux-newbie-8/telnet-troubles-443276/)

tommytomato 05-09-2006 09:53 PM

Telnet troubles
 
Hi all

I'm quiet new to setting up a email server, I've been following this link
http://postfix.state-of-mind.de/patr...ilclients.html

I'm up too step 12.3. Check for SMTP AUTH support

I dont seem to be able to pull up the Telnet commands
the EHLO command doesn't seem to work, I'm at alost to why. is there some thing I should check would any one have any idea please.

TT

pk21 05-10-2006 12:39 AM

what is the error?!
maybe log entries?

tommytomato 05-10-2006 01:24 AM

I dont know if there is a error

I'm able to send mail to any user within the system or to the out side from the command line or using MUTT.

beside that I cant get my XP telnet to run those commands
12.3. Check for SMTP AUTH support
http://postfix.state-of-mind.de/patr...ilclients.html

TT

blueAlien 05-10-2006 01:32 AM

some mail servers use HELO instead of EHLO, but most of the popular ones use both...

tommytomato 05-10-2006 01:47 AM

ok if its port 25 I should contect to then here is my message

Code:

telnet 192.168.1.10 25
Trying 192.168.1.10...
telnet: connect to address 192.168.1.10: Connection refused
telnet: Unable to connect to remote host: Connection refused

ok here's dumb question does Postfix server have its on IP other than the one i got :scratch:

TT

blueAlien 05-10-2006 01:53 AM

Is there a firewall of any kind between the computer you are using and the server running the mail server? Or is postfix configured to allow incoming connections from outside computers?

Your telnet command is correct, and postfix will be using the same address as the server.

The only thing I can say is that something is blocking remote connections to the server on port 25, so once you find what is causing that, and correct the problem you will be able to telnet.

tommytomato 05-10-2006 02:02 AM

Yes I do have a fire wall.

I use the command like so to get in

system-config-securitylevel

Allow incoming: I have ticked Telnet and Mail

/etc/sysconfig/iptables say the following

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT

TT

fotoguy 05-10-2006 02:59 AM

You will also need to allow connctions to go out on the OUTPUT chains as well

MAybe something like:
/sbin/iptables -A OUTPUT -m -state --state ESTABLISHED,RELATED -p tcp --dport 23 -j ACCEPT
/sbin/iptables -A OUTPUT -m -state --state ESTABLISHED,RELATED -p tcp --dport 25 -j ACCEPT

tommytomato 05-10-2006 03:32 AM

Ok here is whats going on

the only way I can telnet is like so

telnet localhost 25 and it logs me in ok

using telnet IP address 25 nothing happens

TT

tommytomato 05-10-2006 03:41 AM

does this look right, becuase I'm not getting any mail

Code:

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.mydomain.com ESMTP Postfix (2.1.5)
EHLO mydomain.com
250-mail.mydomain.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-AUTH DIGEST-MD5 LOGIN PLAIN GSSAPI CRAM-MD5 NTLM
250-AUTH=DIGEST-MD5 LOGIN PLAIN GSSAPI CRAM-MD5 NTLM
250 8BITMIME
MAIL FROM:<howto@domain.com>
250 Ok
RCPT TO:<test@mydomain.com>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Test from remote host
Test #2
.
250 Ok: queued as A2D7E3201BC
QUIT
221 Bye
Connection closed by foreign host.

TT

tommytomato 05-10-2006 04:57 AM

ok I got a bit furter now

12.4. Check if SMTP AUTH works
http://postfix.state-of-mind.de/patr...ilclients.html

why am i getting this error message
535 Error: authentication failed

after following the above step's

Code:

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.mydomain.com ESMTP Postfix (2.1.5)
ehlo mydomain.com
250-mail.mydomain.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-AUTH DIGEST-MD5 LOGIN PLAIN GSSAPI CRAM-MD5 NTLM
250-AUTH=DIGEST-MD5 LOGIN PLAIN GSSAPI CRAM-MD5 NTLM
250 8BITMIME
auth plain dGVzdAB0ZXN0AHRlc3RwYXNz
535 Error: authentication failed

I did enter the following
# perl -MMIME::Base64 -e 'print encode_base64("test\0test\0testpass");'

to recive this dGVzdAB0ZXN0AHRlc3RwYXNz

TT

pk21 05-10-2006 08:02 PM

Think postfix is only running on 127.0.0.1 and not on the other ip addresses configured on your machine(you can check with: netstat -na|grep 25).

tommytomato 05-10-2006 08:09 PM

Thanks for that pk21

Code:

netstat -na|grep 25
tcp        0      0 127.0.0.1:25            0.0.0.0:*              LISTEN

alot of people are asking my I'm using telnet, because the tutorial i'm working tells me too.

if you know of another tutorial I can work from please post the link.

My system is tinysofa enterprise server release 2.0 Update 1 (Odin)
and I'm reading the tutorial, Postfix SMTP AUTH (and TLS) HOWTO
http://postfix.state-of-mind.de/patr...uth/index.html

So in the long run,I may be able to run a email server for our site.

I know its out of date but I haven't found a updated copy of that tutorial, I aslo my my files are newer than the ones on the tutorial, is that going to make a difference :confused:

Any help would be great.

TT

fotoguy 05-14-2006 07:04 AM

OK this is not going to help out with your problem but I thought I might mention to you so you may have another option should getting the mail server turn out to be a headache. There is a great mail server distro called SME server, it is a full featured mail server that installs straight of the disc, very easy to follow the installation

It has a web-based interface for administration and has a host of features. The company Mitel had 2 versions, a free version and a commercial version. They drop the free version and Contribs.org picked up the free version and continue to bring out updated versions. The only thing with it is it runs on a dedicated machine, it cannot reside along side another operating system.

tommytomato 05-14-2006 08:42 PM

Thank you fotoguy

I downloaded it today

TT


All times are GMT -5. The time now is 07:51 PM.