When sending a simple email via telnet or netcat to my ISP's SMTP server I cannot terminate the message with a period. Eventually the connection times out but the message is not delivered.
root@zeus:/tmp# telnet mail.charter.net 25 220 imp09 smtp.charter.net ESMTP server ready 20110115 000442 HELO charter.net 250 imp09 hello [97.94.115.109], pleased to meet you MAIL FROM: test@gmail.com 250 2.1.0 <test@gmail.com> sender ok RCPT TO: test@gmail.com 250 2.1.5 <test@gmail.com> recipient ok DATA 354 enter mail, end with "." on a line by itself test body . . /n. /n . \n . QUIT
This works fine on another computer on the same network and ISP with a different version of telnet.
netcat hangs the same way on both computers.
I was thinking this may have something to do with LINEMODE, as the telnet session that cannot send the email is in LINEMODE and cannot switch to CHARMODE. Are there any work arounds?