Link to home
Start Free TrialLog in
Avatar of ostraaten
ostraaten

asked on

How to end my telnet test email using <CRLF>.<CRLF>

I'm trying to send an test email using telnet on a redhat Linux enterprise server.

I have started my telnet session with success. mail from, rcpt etc, all succesfull. The problem is that the servers tells met to end the email with <CRLF>.<CRLF>.

How can I do that. What buttons should I actually press to achieve this?
[apps@src-root-as12 ~]$ telnet smtp.resultinfra.com 25
Trying 10.20.178.114...
Connected to smtp.resultinfra.com (10.20.178.114).
Escape character is '^]'.
220 src-root-dc02.rinfra.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at  Mon, 19 May 2008 15:01:43 +0200
ehlo test
250-src-root-dc02.rinfra.com Hello [10.20.176.30]
250-TURN
250-SIZE 2097152
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250 OK
mail from: onno.van.der.straaten@logica.com
250 2.1.0 onno.van.der.straaten@logica.com....Sender OK
rcpt to: onno.van.der.straaten@logica.com
250 2.1.5 onno.van.der.straaten@logica.com
data
354 Start mail input; end with <CRLF>.<CRLF>
test
test
...
...
..

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

To tell the mail server that you have completed the message enter a single "." on a line on it's own.
The mail server should reply with:

10.20.178.114???????? Message accepted for delivery

You can close the connection by issuing the QUIT command.
The mailserver should reply with something like:

221 2.0.0 mail.domain.ext closing connection
Connection closed by foreign host.


For more details you may see:

http://www.yuki-onna.co.uk/email/smtp.html
Avatar of ostraaten
ostraaten

ASKER

OK, thanks that worked, I get the message
250 2.6.0 <SRC-ROOT-DC02zFD4LX000023f3@src-root-dc02.rinfra.com> Queued mail for delivery

Now I am not receiving my test email, this means that I should take a look at the configuration of the SMTP server?
Did you follow the steps properly:

http://www.yuki-onna.co.uk/email/pop.html
Check the mail log... and the mail queue....
SMTP is for mail sending, POP or IMAP is for receiving.