List Info

Thread: Re: telnet smtp commands




Re: telnet smtp commands
country flaguser name
New Zealand
2007-05-16 15:34:52
----- Original Message -----
>Shouldn't there be a blank line before Subject?

No, the blank line after the DATA command moves the
remaining streaming
data into the body of the message. Streaming data prior to a
blank line is
for use in the headers of the email.

The helo, mail from and rcpt to commands are all issued
before the DATA
command and the information given via those commands is what
is inserted
into the received line (fake or otherwise), the return
address (can be
fake) and the destination (which must exist).

An attempt to issue the subject before the DATA results in
an error.

=================================
Kevin W. Gagel
Network Administrator
Information Technology Services
(250) 562-2131 local 448
My Blog:
http://mail.cnc.bc.
ca/blogs/gagel

------------------------------------------------------------
-------
The College of New Caledonia, Visit us at http://www.cnc.bc.ca
Virus scanning is done on all incoming and outgoing email.
Anti-spam information for CNC can be found at http://avas.cnc.bc.ca
------------------------------------------------------------
-------


Re: telnet smtp commands
country flaguser name
New Zealand
2007-05-16 16:34:12
At 1:34 PM -0700 5/16/07, Kevin W. Gagel sent email
regarding Re: 
[SurgeMail List] telnet smtp commands:
>----- Original Message -----
>>Shouldn't there be a blank line before Subject?
>
>No, the blank line after the DATA command moves the
remaining streaming
>data into the body of the message. Streaming data prior
to a blank line is
>for use in the headers of the email.

Exactly.

>
>The helo, mail from and rcpt to commands are all issued
before the DATA
>command and the information given via those commands is
what is inserted
>into the received line (fake or otherwise), the return
address (can be
>fake) and the destination (which must exist).
>
>An attempt to issue the subject before the DATA results
in an error.

But what happens if you issue a blank line, then subject,
to, from 
etc, *after* DATA?

Try this:
telnet mail.domain.com 25
HELO domain.com

MAIL FROM: medomain.com
RCPT TO: themdomain.com
DATA

To: themdomain.com
From: medomain.com
CC: somoneelse.com
Subject: Hello there




[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )