Difference between revisions of "Simple Mail Transfer Protocol"

From 6bit.ch wiki
Jump to navigation Jump to search
 
Line 7: Line 7:
<code>RCPT TO: [email protected]</code> Set the TO field</br>
<code>RCPT TO: [email protected]</code> Set the TO field</br>
<code>DATA</code> Enter message, starting with 'From: [email protected]' 'To: [email protected]' 'Subject: zzz', followed by message body and ending with '.'
<code>DATA</code> Enter message, starting with 'From: [email protected]' 'To: [email protected]' 'Subject: zzz', followed by message body and ending with '.'
== Send mail using telnet with STARTTLS handshake ==
<code>openssl s_client -debug -starttls smtp -crlf -ign_eof -connect 10.13.12.52:587</code>

Latest revision as of 14:20, 28 November 2024

smtp

Send mail using telnet

telnet localhost 25 Connect to the server
HELO 6bit.ch Greet the server.
MAIL FROM: [email protected] Set the FROM field
RCPT TO: [email protected] Set the TO field
DATA Enter message, starting with 'From: [email protected]' 'To: [email protected]' 'Subject: zzz', followed by message body and ending with '.'

Send mail using telnet with STARTTLS handshake

openssl s_client -debug -starttls smtp -crlf -ign_eof -connect 10.13.12.52:587