SMTPサーバのテストをする時にちょっとしたメールをコマンドで送る方法です。
中身が適当なので、送れるかぐらいのテストメールです
# telnet localhost 25 Trying 127.0.0.1...ざっくりとこんな感じです
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 bobineko.biz ESMTP ehlo localpc 250-bobineko.biz
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH CRAM-MD5 DIGEST-MD5
250-AUTH=CRAM-MD5 DIGEST-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN mail from: <test@bobineko.biz> 250 2.1.0 Ok rcpt to: <test@bobineko.biz> 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> header
data
. 250 2.0.0 Ok: queued as 7885D68071 quit 221 2.0.0 Bye
Connection closed by foreign host.