SMTPのコマンドのやりとり

トップオープンソースqmail sendmail SMTPプロトコル

qmail sendmail SMTPプロトコル

SMTPのコマンドのやりとり

SMTP応答コマンド・・・エラーコードなど参考になります。
SMTPコマンド/応答コード : IT用語辞典 e-Words
※QMAIL/SENDMAIL/POSTFIXの設定が終わったら以下のような感じでマニュアルで動作試験をするときに便利です。
 斜線部分が打ち込むコマンドとなります。

% telnet mail.cgi-support.com 25
Trying 192.168.0.0...
Connected to mail.cgi-support.com.
Escape character is '^]'.
220 mail.cgi-support.com qmail ESMTP MAIL Service, Version: 1.0 ready at Sat, 6 May 2006 08:20:14 0900
HELO zaco's pc
250 mail.cgi-support.com Hello [1.2.3.4]
MAIL FROM: <zaco@cgi-support.com>
250 zaco@cgi-support.com....Sender OK
RCPT TO: <hogehoge@yahoo.co.jp>
250 hogehoge@yahoo.co.jp
DATA
354 Start mail input; end with .
Subject: This is telnet smtp testing...

this is test. thanks from zaco.
this is test. thanks from zaco.
this is test. thanks from zaco.
this is test. thanks from zaco.
.

250 Queued mail for delivery
quit
221 mail.cgi-support.com Service closing transmission channel
Connection closed by foreign host.



カテゴリ内の記事