[linux]telnetでメールを送ってみる

$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 inspiron ESMTP Postfix (Ubuntu)
HELO localhost
250 inspiron
MAIL From:<rudeboyjet@localhost.localdomain>
250 2.1.0 Ok
RCPT TO:<rudeboyjet@mail.com>
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject: Mail with telnet

This is a test mail

.
250 2.0.0 Ok: queued as 6014B6341A2
QUIT
221 2.0.0 Bye
Connection closed by foreign host.